Sha256: 482be36cec50b08129ea209ac91f2f2ee846ef320e54bc45c871f0c280903991

Contents?: true

Size: 400 Bytes

Versions: 7

Compression:

Stored size: 400 Bytes

Contents

require File.join(File.dirname(__FILE__), "/../../../../spec_helper.rb")

describe Mongoid::Extensions::Hash::Conversions do

  describe "#get" do

    it "returns the hash" do
      Hash.get({ :field => "test" }).should == { :field => "test" }
    end

  end

  describe "#set" do

    it "returns the hash" do
      Hash.set({ :field => "test" }).should == { :field => "test" }
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mongoid-0.6.4 spec/unit/mongoid/extensions/hash/conversions_spec.rb
mongoid-0.6.3 spec/unit/mongoid/extensions/hash/conversions_spec.rb
mongoid-0.6.2 spec/unit/mongoid/extensions/hash/conversions_spec.rb
mongoid-0.6.1 spec/unit/mongoid/extensions/hash/conversions_spec.rb
mongoid-0.6.0 spec/unit/mongoid/extensions/hash/conversions_spec.rb
mongoid-0.5.11 spec/unit/mongoid/extensions/hash/conversions_spec.rb
mongoid-0.5.10 spec/unit/mongoid/extensions/hash/conversions_spec.rb