Sha256: 0eca4102a29aa2de67b74fb97500fb982f8d313a499201c70d7691e5d2927898

Contents?: true

Size: 416 Bytes

Versions: 16

Compression:

Stored size: 416 Bytes

Contents

require 'spec_helper'

RSpec.describe ROM::SQL::Schema, '#qualified', :postgres, seeds: false do
  include_context 'users'

  before do
    conf.relation(:users) do
      schema(infer: true)
    end
  end

  it 'qualifies column names' do
    expect(relations[:users].schema.qualified.(relations[:users]).dataset.sql)
      .to eql('SELECT "users"."id", "users"."name" FROM "users" ORDER BY "users"."id"')
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rom-sql-1.3.5 spec/integration/schema/qualified_spec.rb
rom-sql-1.3.4 spec/integration/schema/qualified_spec.rb
rom-sql-2.0.0.beta2 spec/integration/schema/qualified_spec.rb
rom-sql-2.0.0.beta1 spec/integration/schema/qualified_spec.rb
rom-sql-1.3.3 spec/integration/schema/qualified_spec.rb
rom-sql-1.3.2 spec/integration/schema/qualified_spec.rb
rom-sql-1.3.1 spec/integration/schema/qualified_spec.rb
rom-sql-1.3.0 spec/integration/schema/qualified_spec.rb
rom-sql-1.2.2 spec/integration/schema/qualified_spec.rb
rom-sql-1.2.1 spec/integration/schema/qualified_spec.rb
rom-sql-1.2.0 spec/integration/schema/qualified_spec.rb
rom-sql-1.1.2 spec/integration/schema/qualified_spec.rb
rom-sql-1.1.1 spec/integration/schema/qualified_spec.rb
rom-sql-1.1.0 spec/integration/schema/qualified_spec.rb
rom-sql-1.0.3 spec/integration/schema/qualified_spec.rb
rom-sql-1.0.2 spec/integration/schema/qualified_spec.rb