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

Version Path
mongoid-0.5.5 spec/unit/mongoid/extensions/object/conversions_spec.rb
mongoid-0.5.4 spec/unit/mongoid/extensions/object/conversions_spec.rb
mongoid-0.5.3 spec/unit/mongoid/extensions/object/conversions_spec.rb
mongoid-0.5.2 spec/unit/mongoid/extensions/object/conversions_spec.rb
mongoid-0.5.1 spec/unit/mongoid/extensions/object/conversions_spec.rb
mongoid-0.5.0 spec/unit/mongoid/extensions/object/conversions_spec.rb