From 150aa6d833de91cb197a816f1c5c334d1be9efc1 Mon Sep 17 00:00:00 2001 From: Reese Williams Date: Wed, 4 Jan 2023 01:40:38 +0000 Subject: [PATCH] Update existing fixtures --- fixtures/small/block_local_variables_expected.rb | 4 ++-- fixtures/small/blocks_with_only_comments_expected.rb | 4 ++-- fixtures/small/curly_line_breaking_expected.rb | 4 ++-- fixtures/small/method_chains_expected.rb | 8 ++++---- fixtures/small/multiline_chain_in_block_expected.rb | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fixtures/small/block_local_variables_expected.rb b/fixtures/small/block_local_variables_expected.rb index 9fa6566af..35d5ef6ab 100644 --- a/fixtures/small/block_local_variables_expected.rb +++ b/fixtures/small/block_local_variables_expected.rb @@ -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) diff --git a/fixtures/small/blocks_with_only_comments_expected.rb b/fixtures/small/blocks_with_only_comments_expected.rb index 1166db4f6..b629db053 100644 --- a/fixtures/small/blocks_with_only_comments_expected.rb +++ b/fixtures/small/blocks_with_only_comments_expected.rb @@ -15,7 +15,7 @@ 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 @@ -23,7 +23,7 @@ def foo # One sees, with a sharp tender shock, # His hand withdrawn, holding her hand. - } + end method_call end diff --git a/fixtures/small/curly_line_breaking_expected.rb b/fixtures/small/curly_line_breaking_expected.rb index 7cbad2d1c..303080073 100644 --- a/fixtures/small/curly_line_breaking_expected.rb +++ b/fixtures/small/curly_line_breaking_expected.rb @@ -1,5 +1,5 @@ do_something { |a| [a] } -do_something { |a| +do_something do |a| [ 1, 2, @@ -105,4 +105,4 @@ 3, 3 ] -} +end diff --git a/fixtures/small/method_chains_expected.rb b/fixtures/small/method_chains_expected.rb index 99ed221da..ec99f3a84 100644 --- a/fixtures/small/method_chains_expected.rb +++ b/fixtures/small/method_chains_expected.rb @@ -1,8 +1,8 @@ returns_array - .map { |foo| + .map do |foo| thing = foo.idk thing.call - } + end .chain do |bar| bar.do_stuff! end @@ -110,10 +110,10 @@ def example .foo .bar .baz - .map { |x| + .map do |x| multiline block - } + end .bacon .next_call( a: "", diff --git a/fixtures/small/multiline_chain_in_block_expected.rb b/fixtures/small/multiline_chain_in_block_expected.rb index 95bee5bd4..b5d72be75 100644 --- a/fixtures/small/multiline_chain_in_block_expected.rb +++ b/fixtures/small/multiline_chain_in_block_expected.rb @@ -1,8 +1,8 @@ -sig { +sig do params( route: String ).void -} +end def ajax_get(route) super end