Sha256: 86491e63b20dcd961ecd5497484ad1f3c2cfdf6d8268912b26aeae9e403ca08d

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    describe OrderByTerm, "qualifier" do

      subject{ expr.qualifier }

      context 'when qualified' do
        let(:expr){ order_by_term(qualified_name('t1', 'a'), "asc") }

        it{ should eq('t1') }
      end

      context 'when not qualified' do
        let(:expr){ order_by_term(column_name_a, "asc") }

        it{ should be_nil }
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-sql-0.16.3 spec/nodes/order_by_term/test_qualifier.rb
alf-sql-0.16.2 spec/nodes/order_by_term/test_qualifier.rb
alf-sql-0.16.1 spec/nodes/order_by_term/test_qualifier.rb
alf-sql-0.16.0 spec/nodes/order_by_term/test_qualifier.rb
alf-sql-0.15.0 spec/nodes/order_by_term/test_qualifier.rb