Sha256: d1e991698e98a8d22a051d2214867f2762a50ca4f90a3b331b305869671cb82d

Contents?: true

Size: 265 Bytes

Versions: 24

Compression:

Stored size: 265 Bytes

Contents

require 'helper'

describe "Float.to_store" do
  it "should convert value to_f" do
    [21, 21.0, '21'].each do |value|
      Float.to_store(value).should == 21.0
    end
  end

  it "should leave nil values nil" do
    Float.to_store(nil).should == nil
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
toystore-0.13.2 spec/toy/extensions/float_spec.rb
toystore-0.13.1 spec/toy/extensions/float_spec.rb
toystore-0.13.0 spec/toy/extensions/float_spec.rb
toystore-0.12.0 spec/toy/extensions/float_spec.rb
toystore-0.11.0 spec/toy/extensions/float_spec.rb
toystore-0.10.4 spec/toy/extensions/float_spec.rb
toystore-0.10.3 spec/toy/extensions/float_spec.rb
toystore-0.10.2 spec/toy/extensions/float_spec.rb
toystore-0.10.1 spec/toy/extensions/float_spec.rb
toystore-0.10.0 spec/toy/extensions/float_spec.rb
toystore-0.9.0 spec/toy/extensions/float_spec.rb
toystore-0.8.3 spec/toy/extensions/float_spec.rb
toystore-0.8.2 spec/toy/extensions/float_spec.rb
toystore-0.8.1 spec/toy/extensions/float_spec.rb
toystore-0.8.0 spec/toy/extensions/float_spec.rb
toystore-0.7.0 spec/toy/extensions/float_spec.rb
toystore-0.6.6 spec/toy/extensions/float_spec.rb
toystore-0.6.5 spec/toy/extensions/float_spec.rb
toystore-0.6.4 spec/toy/extensions/float_spec.rb
toystore-0.6.3 spec/toy/extensions/float_spec.rb