Sha256: 677a6dfd8358cc6e6da28a51d0c0d6b3d669657512b82fdb892957217e240015
Contents?: true
Size: 326 Bytes
Versions: 6
Compression:
Stored size: 326 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../../../../spec_helper.rb") describe Mongoid::Extensions::Object::Conversions do describe "#mongoidize" do it "returns its attributes" do Person.new(:title => "Sir").mongoidize.should == HashWithIndifferentAccess.new({ :title => "Sir" }) end end end
Version data entries
6 entries across 6 versions & 1 rubygems