Sha256: 7821885f072aa999505975e9fbcfcf819eb76b6269a7e5defd31d4dc2e352c57

Contents?: true

Size: 374 Bytes

Versions: 30

Compression:

Stored size: 374 Bytes

Contents

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

describe Mongoid::Extensions::Float::Conversions do

  describe "#set" do

    it "converts the string to a float" do
      Float.set("3.45").should == 3.45
    end

  end

  describe "#get" do

    it "returns the float" do
      Float.get(3.45).should == 3.45
    end

  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mongoid-0.9.2 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.9.1 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.9.0 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.10 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.9 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.8 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.7 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.6 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.5 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.4 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.3 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.2 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.8.1 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.10 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.9 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.8 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.7 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.6 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.5 spec/unit/mongoid/extensions/float/conversions_spec.rb
mongoid-0.7.4 spec/unit/mongoid/extensions/float/conversions_spec.rb