spec/pickle/parser_spec.rb in pickle-0.4.3 vs spec/pickle/parser_spec.rb in pickle-0.4.4

- old
+ new

@@ -51,10 +51,14 @@ end it '(\'foo: "bar"\') should == { "foo" => "bar"}' do @parser.parse_fields('foo: "bar"').should == { "foo" => "bar"} end + + it '(\'foo: "something \"quoted\""\') should == { "foo" => "bar"}' do + @parser.parse_fields('foo: "something \"quoted\""').should == { "foo" => 'something "quoted"' } + end it '("bool: true") should == { "bool" => true}' do @parser.parse_fields('bool: true').should == {"bool" => true} end @@ -68,11 +72,11 @@ it '("float: 10.1") should == { "float" => 10.1 }' do @parser.parse_fields('float: 10.1').should == {"float" => 10.1} end - it '(\'foo: "bar", bar_man: "wonga wonga", gump: 123\') should == {"foo" => "bar", "bar_man" => "wonga wonga", "gump" => 123}' do - @parser.parse_fields('foo: "bar", bar_man: "wonga wonga", gump: 123').should == {"foo" => "bar", "bar_man" => "wonga wonga", "gump" => 123} + it '(\'foo: "bar", bar_man: "wonga wonga", baz_woman: "one \"two\" three", gump: 123\') should == {"foo" => "bar", "bar_man" => "wonga wonga", "gump" => 123}' do + @parser.parse_fields('foo: "bar", bar_man: "wonga wonga", baz_woman: "one \"two\" three", gump: 123').should == {"foo" => "bar", "bar_man" => "wonga wonga", "baz_woman" => "one \"two\" three", "gump" => 123} end end describe '#parse_model' do it '("a user") should == ["user", ""]' do \ No newline at end of file