Skip to content

Commit

Permalink
Update existing fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
reese committed Jan 4, 2023
1 parent 536ce6c commit d61959f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 19 deletions.
4 changes: 2 additions & 2 deletions fixtures/small/block_local_variables_expected.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
y = 12
lambda { |x, ;y|
lambda do |x, ;y|
puts(x)
puts(y)
y = 19
puts(y)
}
end
.call(17)
puts(y)

Expand Down
4 changes: 2 additions & 2 deletions fixtures/small/blocks_with_only_comments_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def foo
end

# More comments!!
commented_brace_block {
commented_brace_block do
# Such plainness of the pre-baroque
# Hardly involves the eye, until
# It meets his left-hand gauntlet, still
# Clasped empty in the other; and
# One sees, with a sharp tender shock,

# His hand withdrawn, holding her hand.
}
end

method_call
end
2 changes: 0 additions & 2 deletions fixtures/small/brace_to_do_blocks_actual.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ class Foo
# !! `example_dsl [].map do |k| k; k+1 end`
example_dsl [].map { |k| k; k+1 }
end

group(:test) { gem 'mocha'; gem 'rack-test' }
5 changes: 0 additions & 5 deletions fixtures/small/brace_to_do_blocks_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,3 @@ class Foo
end
)
end

group(:test) do
gem "mocha"
gem "rack-test"
end
4 changes: 2 additions & 2 deletions fixtures/small/curly_line_breaking_expected.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
do_something { |a| [a] }
do_something { |a|
do_something do |a|
[
1,
2,
Expand Down Expand Up @@ -105,4 +105,4 @@
3,
3
]
}
end
8 changes: 4 additions & 4 deletions fixtures/small/method_chains_expected.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
returns_array
.map { |foo|
.map do |foo|
thing = foo.idk
thing.call
}
end
.chain do |bar|
bar.do_stuff!
end
Expand Down Expand Up @@ -110,10 +110,10 @@ def example
.foo
.bar
.baz
.map { |x|
.map do |x|
multiline
block
}
end
.bacon
.next_call(
a: "",
Expand Down
4 changes: 2 additions & 2 deletions fixtures/small/multiline_chain_in_block_expected.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
sig {
sig do
params(
route: String
).void
}
end
def ajax_get(route)
super
end

0 comments on commit d61959f

Please sign in to comment.