From c2cb6081e19a6ddbb125aa6fef31fff1b3e0965c Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Mon, 20 Jan 2014 23:26:29 -0500 Subject: [PATCH] Fix some more code style issues with block params being in the wrong place --- spec/homesick_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/homesick_spec.rb b/spec/homesick_spec.rb index 1b7b7a0..4874d4f 100644 --- a/spec/homesick_spec.rb +++ b/spec/homesick_spec.rb @@ -18,8 +18,8 @@ describe 'homesick' do somewhere = create_construct local_repo = somewhere.directory('some_repo') local_repo.file('.homesickrc') do |file| - file << "File.open(Dir.pwd + '/testing', 'w') do - |f| f.print 'testing' + file << "File.open(Dir.pwd + '/testing', 'w') do |f| + f.print 'testing' end" end @@ -126,8 +126,8 @@ describe 'homesick' do it 'executes the .homesickrc' do castle.file('.homesickrc') do |file| - file << "File.open(Dir.pwd + '/testing', 'w') do - |f| f.print 'testing' + file << "File.open(Dir.pwd + '/testing', 'w') do |f| + f.print 'testing' end" end @@ -146,8 +146,8 @@ describe 'homesick' do it 'does not execute the .homesickrc' do castle.file('.homesickrc') do |file| - file << "File.open(Dir.pwd + '/testing', 'w') do - |f| f.print 'testing' + file << "File.open(Dir.pwd + '/testing', 'w') do |f| + f.print 'testing' end" end