spec/public/to_json_spec.rb in dm-serializer-1.1.0.rc2 vs spec/public/to_json_spec.rb in dm-serializer-1.1.0.rc3

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' -describe DataMapper::Serialize, '#to_json' do +describe DataMapper::Serializer, '#to_json' do # # ==== ajaxy JSON # before(:all) do @@ -62,10 +62,10 @@ JSON.parse(hash.to_json).should == hash end end -describe DataMapper::Serialize, '#as_json' do +describe DataMapper::Serializer, '#as_json' do it "handles nil for options" do expect { Cow.new.as_json(nil) }.to_not raise_error end it "serializes Discriminator types as strings" do