spec/cucumber/ast/table_spec.rb in cucumber-0.10.2 vs spec/cucumber/ast/table_spec.rb in cucumber-0.10.3
- old
+ new
@@ -59,9 +59,13 @@
@table.map_column!(:one) { |v| v.to_i }
@table.rows.first.should include(4444)
@table.rows.first.should_not include('4444')
end
+ it "should return the row values in order" do
+ @table.rows.first.should == %w{4444 55555 666666}
+ end
+
it "should pass silently if a mapped column does not exist in non-strict mode" do
lambda {
@table.map_column!('two', false) { |v| v.to_i }
}.should_not raise_error
end