spec/unit/rails_spec.rb in mongo_mapper-0.13.0 vs spec/unit/rails_spec.rb in mongo_mapper-0.13.1

- old
+ new

@@ -64,9 +64,14 @@ it "should be able to write key with write_attribute" do @klass.new(:bar => 'Setting Foo').foo.should == 'Setting Foo' end + it "should return the type casted value from write attribute" do + obj = @klass.new + obj.write_attribute(:foo, true).should == "true" + end + context '#to_param' do it "should be nil if not persisted" do @klass.new.tap do |doc| doc.to_param.should be_nil end