spec/cucumber/ast/table_spec.rb in aslakhellesoy-cucumber-0.3.93.1 vs spec/cucumber/ast/table_spec.rb in aslakhellesoy-cucumber-0.3.94

- old
+ new

@@ -99,9 +99,14 @@ it "should allow renaming columns" do table2 = @table.map_headers('one' => :three) table2.hashes.first[:three].should == '4444' end + it "should allow renaming columns using regexp" do + table2 = @table.map_headers(/one|uno/ => :three) + table2.hashes.first[:three].should == '4444' + end + it "should copy column mappings when mapping headers" do @table.map_column!('one') { |v| v.to_i } table2 = @table.map_headers('one' => 'three') table2.hashes.first['three'].should == 4444 end