Sha256: cabfb23ba9dc58e256b665576c34d2c705dffcad2b1d99e64920e0ea71175913

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 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(PG::Error, /invalid input syntax/)
    end
  end
end if ENV['ADAPTER'] == 'postgresql'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upsert-1.0.2 spec/type_safety_spec.rb