Sha256: 6d9fd6650ea30a6416e25b537b22256ba54d70a6a6204d37ea7a3a1a1f370eb7

Contents?: true

Size: 304 Bytes

Versions: 3

Compression:

Stored size: 304 Bytes

Contents

require 'spec_helper'
describe Upsert do
  describe "is precise" do
    it "stores small numbers precisely" do
      small = -0.00000000634943
      upsert = Upsert.new $conn, :pets
      upsert.row({:name => 'NotJerry'}, :lovability => small)
      Pet.first.lovability.should == small
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
upsert-1.0.2 spec/precision_spec.rb
upsert-0.5.0 spec/precision_spec.rb
upsert-0.4.0 spec/precision_spec.rb