spec/cucumber/ast/py_string_spec.rb in cucumber-0.6.3 vs spec/cucumber/ast/py_string_spec.rb in cucumber-0.6.4

- old
+ new

@@ -3,24 +3,24 @@ module Cucumber module Ast describe PyString do it "should handle unindented" do - ps = PyString.new(10, 13, "4.1\n4.2\n", 0) + ps = PyString.new(10, 13, "4.1\n4.2\n", "") ps.to_s.should == "4.1\n4.2\n" end it "should handle indented" do # """ - ps = PyString.new(10, 13, " 4.1\n 4.2\n", 2) + ps = PyString.new(10, 13, " 4.1\n 4.2\n", " ") ps.to_s.should == " 4.1\n 4.2\n" end describe "replacing arguments" do before(:each) do - @ps = PyString.new(10, 13, "<book>\n<qty>\n", 0) + @ps = PyString.new(10, 13, "<book>\n<qty>\n", "") end it "should return a new py_string with arguments replaced with values" do py_string_with_replaced_arg = @ps.arguments_replaced({'<book>' => 'Life is elsewhere', '<qty>' => '5'}) @@ -32,10 +32,10 @@ @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) + ps = PyString.new(10, 13, "'<book>'", "") py_string_with_replaced_arg = ps.arguments_replaced({'<book>' => nil}) py_string_with_replaced_arg.to_s.should == "''" end \ No newline at end of file