Sha256: 4083e5766c7c7a063be5e4505fc4455c6a158826b6603dc58848e608f5b21f4c

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

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

      subject{ expr.direction }

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

        it{ should eq('asc') }
      end

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

        it{ should eq('asc') }
      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_direction.rb
alf-sql-0.16.2 spec/nodes/order_by_term/test_direction.rb
alf-sql-0.16.1 spec/nodes/order_by_term/test_direction.rb
alf-sql-0.16.0 spec/nodes/order_by_term/test_direction.rb
alf-sql-0.15.0 spec/nodes/order_by_term/test_direction.rb