Sha256: 78613ad53860f412ef225643d0297fc2a197031e864d70c5d72f9eda412f6e56

Contents?: true

Size: 285 Bytes

Versions: 18

Compression:

Stored size: 285 Bytes

Contents

require 'spec_helper'
describe Upsert do
  describe "type safety" do
    it "does not attempt to typecast values" do
      upsert = Upsert.new $conn, :pets
      lambda do
        upsert.row :tag_number => ''
      end.should raise_error
    end
  end
end if ENV['DB'] == 'postgresql'

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
upsert-2.2.1 spec/type_safety_spec.rb
upsert-2.2.0 spec/type_safety_spec.rb
upsert-2.1.2 spec/type_safety_spec.rb
upsert-2.1.1 spec/type_safety_spec.rb
upsert-2.1.0 spec/type_safety_spec.rb
upsert-2.0.4 spec/type_safety_spec.rb
upsert-2.0.3 spec/type_safety_spec.rb
upsert-2.0.2 spec/type_safety_spec.rb
upsert-2.0.1 spec/type_safety_spec.rb
upsert-2.0.0 spec/type_safety_spec.rb
upsert-1.2.0 spec/type_safety_spec.rb
upsert-1.1.7 spec/type_safety_spec.rb
upsert-1.1.6 spec/type_safety_spec.rb
upsert-1.1.5 spec/type_safety_spec.rb
upsert-1.1.4 spec/type_safety_spec.rb
upsert-1.1.3 spec/type_safety_spec.rb
upsert-1.1.1 spec/type_safety_spec.rb
upsert-1.1.0 spec/type_safety_spec.rb