Sha256: df9b9251bf244bf76aba6ebaa140be7b05331826c035f8dbc2210b0ec16f0988

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

require 'test_helpers'
describe Alf, "resulting type on coerce" do

  it 'should use the coerced info' do
    db.connect do |conn|
      rel = conn.query{
        project(coerce(suppliers, status: Integer), [:status])
      }
      exp = Relation[status: Integer]
      rel.class.should eq(exp)
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-0.16.3 spec/typing/test_typing_on_coerce.rb
alf-0.16.2 spec/typing/test_typing_on_coerce.rb
alf-0.16.1 spec/typing/test_typing_on_coerce.rb
alf-0.16.0 spec/typing/test_typing_on_coerce.rb