From 305a3fa6744563e2fbca679741dd0542136c81ac Mon Sep 17 00:00:00 2001 From: Markus Fenske Date: Tue, 25 Mar 2014 17:08:37 +0100 Subject: [PATCH] Fix broken specs --- spec/transformer_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/transformer_spec.rb b/spec/transformer_spec.rb index 4fa9b88..28c8f3b 100644 --- a/spec/transformer_spec.rb +++ b/spec/transformer_spec.rb @@ -3,7 +3,7 @@ describe HashSyntax::Transformer do describe 'transforming from 1.8 to 1.9 syntax' do it 'can transform a simple hash' do - 'x = {:foo => :bar}'.should transform_to('x = {foo: :bar}', :to_19) + 'x = {:foo => :bar}'.should transform_to('x = {foo: :bar}', :"to-19") end it 'transforms all hashes in a block of code' do @@ -27,7 +27,7 @@ walk_body_with_rescue_target(result, body, body_block, rescue_target, yield_fail_target) end } - input.should transform_to(output, :to_19) + input.should transform_to(output, :"to-19") end it 'transforms all hashes in a block of code without minding tight spacing' do @@ -51,14 +51,14 @@ walk_body_with_rescue_target(result, body, body_block, rescue_target, yield_fail_target) end } - input.should transform_to(output, :to_19) + input.should transform_to(output, :"to-19") end end describe 'transforming from 1.9 to 1.8 syntax' do it 'can transform a simple hash' do - 'x = {foo: :bar}'.should transform_to('x = {:foo => :bar}', :to_18) + 'x = {foo: :bar}'.should transform_to('x = {:foo => :bar}', :"to-18") end it 'transforms all hashes in a block of code' do @@ -82,7 +82,7 @@ walk_body_with_rescue_target(result, body, body_block, rescue_target, yield_fail_target) end } - input.should transform_to(output, :to_18) + input.should transform_to(output, :"to-18") end end end