Sha256: a6bea479a4f2ecd25a68ab774545dc5ce48fb3a4c539461b10e1f366dbf1837b

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    describe SelectExp, "is_table_dee?" do

      subject{ expr.is_table_dee? }

      context 'when normal select' do
        let(:expr){ select_all }

        it{ should be_false }
      end

      context 'when a select is table dee' do
        let(:expr){ select_is_table_dee }

        it{ should be_true }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-sql-0.16.3 spec/nodes/select_exp/test_is_table_dee.rb
alf-sql-0.16.2 spec/nodes/select_exp/test_is_table_dee.rb
alf-sql-0.16.1 spec/nodes/select_exp/test_is_table_dee.rb
alf-sql-0.16.0 spec/nodes/select_exp/test_is_table_dee.rb