Sha256: 0b46829ac3cd29afd926854b449dffc3c6244b35e0f7355c7e4fb413b473c49b

Contents?: true

Size: 347 Bytes

Versions: 11

Compression:

Stored size: 347 Bytes

Contents

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

describe Mongoid::Extensions::String::Conversions do

  describe "#set" do
    it "returns the object to_s" do
      String.set(1).should == "1"
    end
  end

  describe "#get" do
    it "returns the string" do
      String.get("test").should == "test"
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mongoid-0.6.4 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.6.3 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.6.2 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.6.1 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.6.0 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.5.11 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.5.10 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.5.9 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.5.8 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.5.7 spec/unit/mongoid/extensions/string/conversions_spec.rb
mongoid-0.5.6 spec/unit/mongoid/extensions/string/conversions_spec.rb