spec/parsing_spec.rb in restfully-0.5.2 vs spec/parsing_spec.rb in restfully-0.5.3

- old
+ new

@@ -20,6 +20,10 @@ end it "should correctly serialize an object into json" do object = {'p1' => 'v1'} serialize(object, :content_type => 'application/json;charset=utf-8').should == object.to_json end + it "should correctly unserialize text content" do + object = "anything" + unserialize(object, :content_type => 'text/plain;charset=utf-8').should == object + end end \ No newline at end of file