Sha256: d8658ddc94fbf4773a7c39363dcd2d044c1259acb613a0725e8cd85899e138aa
Contents?: true
Size: 409 Bytes
Versions: 4
Compression:
Stored size: 409 Bytes
Contents
require 'spec_helper' describe Upsert do describe "type safety" do it "does not attempt to typecast values" do error_class = RUBY_PLATFORM == 'java' ? org.postgresql.util.PSQLException : PG::InvalidTextRepresentation upsert = Upsert.new $conn, :pets lambda do upsert.row :tag_number => '' end.should raise_error error_class end end end if ENV['DB'] == 'postgresql'
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
upsert-2.9.10-java | spec/type_safety_spec.rb |
upsert-2.9.10 | spec/type_safety_spec.rb |
upsert-2.9.9-universal-java-11 | spec/type_safety_spec.rb |
upsert-2.9.9 | spec/type_safety_spec.rb |