spec/cucumber/ast/py_string_spec.rb in aslakhellesoy-cucumber-0.1.100.3 vs spec/cucumber/ast/py_string_spec.rb in aslakhellesoy-cucumber-0.1.100.4

- old
+ new

@@ -31,9 +31,16 @@ py_string_with_replaced_arg = @ps.arguments_replaced({'<book>' => 'Life is elsewhere'}) @ps.to_s.should_not include("Life is elsewhere") end + it "should replaced nil with empty string" do + ps = PyString.new(10, 13, "'<book>'", 0) + py_string_with_replaced_arg = ps.arguments_replaced({'<book>' => nil}) + + py_string_with_replaced_arg.to_s.should == "''" + end + end end end end \ No newline at end of file