test/unit/test_support.rb in mongo_mapper-0.6.2 vs test/unit/test_support.rb in mongo_mapper-0.6.3
- old
+ new
@@ -329,6 +329,14 @@
Time.zone = 'Hawaii'
Time.from_mongo(nil).should be_nil
Time.zone = nil
end
end
+
+ context "Mongo::ObjectID.to_json" do
+ should "convert object id to string" do
+ id = Mongo::ObjectID.new
+ id.to_json.should == id.to_s
+ end
+ end
+
end
\ No newline at end of file