Sha256: 165919b4559ba17ff96d8b968e0c814035ceb7e96f4999d94a46a20ce5d44307

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'
module Alf
  class Database
    describe Connection, "query" do

      let(:conn){ sap_conn }

      context 'with a leaf operand' do
        subject{ conn.query{ suppliers } }

        it{ should be_a(Relation) }
      end

      context 'with a complex expression' do
        subject{ conn.query{ project(suppliers, [:sid]) } }

        it{ should be_a(Relation) }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-database/connection/test_query.rb
alf-core-0.14.0 spec/unit/alf-database/connection/test_query.rb
alf-core-0.13.1 spec/unit/alf-database/connection/test_query.rb
alf-core-0.13.0 spec/unit/alf-database/connection/test_query.rb