Skip to content
Browse files

Fixed the build for Mongoid 4.0

  • Loading branch information...
1 parent c472d47 commit 35361573e8747cb66de6f838ba779000dbe89b15 @rmm5t rmm5t committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/mongoid_spec.rb
View
2 spec/mongoid_spec.rb
@@ -126,7 +126,7 @@ def extension_white_list
@doc[:image] = 'test.jpeg'
@doc.save!
@doc.reload
- JSON.parse(@doc.to_json({:only => [:_id]})).should == {"_id" => @doc.id.to_s}
+ JSON.parse(@doc.to_json({:only => [:_id]})).should == {"_id" => @doc.id.as_json}
end
it "should respect options[:except] when passed to to_json for the serializable hash" do

0 comments on commit 3536157

Please sign in to comment.
Something went wrong with that request. Please try again.