Sha256: dc534607177a3747ed8a7cf0d219c6ddb88926d5fa4c2f5488a37a0025069a93

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    describe SelectExp, "order_by_clause" do

      subject{ expr.order_by_clause }

      context 'when an order by clause' do
        let(:expr){ select_all.push(order_by_clause) }

        it{ should eq(order_by_clause) }
      end

      context 'without such clause' do
        let(:expr){ select_all }

        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/select_exp/test_order_by_clause.rb
alf-sql-0.16.2 spec/nodes/select_exp/test_order_by_clause.rb
alf-sql-0.16.1 spec/nodes/select_exp/test_order_by_clause.rb
alf-sql-0.16.0 spec/nodes/select_exp/test_order_by_clause.rb
alf-sql-0.15.0 spec/nodes/select_exp/test_order_by_clause.rb