Permalink
Browse files

More canonical table definition in feature

  • Loading branch information...
1 parent decf034 commit 65d5dacf99fc7f5fa7aee63fcf8583f8b3d40342 @lukaso lukaso committed Aug 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/builder_spec.rb
View
@@ -40,9 +40,9 @@
"the monster should be dead"
])
table = feature.scenarios[0].steps[0].extra_args.find {|a| a.instance_of?(Turnip::Table)}
- table.raw[0][1].should == '10'
+ table.hashes[0]['hit_points'].should == '10'
table = feature.scenarios[1].steps[0].extra_args.find {|a| a.instance_of?(Turnip::Table)}
- table.raw[0][1].should == '8'
+ table.hashes[0]['hit_points'].should == '8'
end
end

0 comments on commit 65d5dac

Please sign in to comment.