Sha256: c2e2751fe872176819f4ae9ee28e07e12999c42ce76e33ed25622c17049e6cf2

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    describe Processor, "on_set_operator" do

      let(:clazz){
        Class.new(Processor){
          def on_select_exp(sexpr)
            [:foo, :bar, sexpr]
          end
        }
      }

      subject{ clazz.new(Builder.new).on_set_operator(expr) }

      let(:expr){
        [:union, all, select_all_a, select_all_b]
      }

      let(:expected){
        [:union, all, [:foo, :bar, select_all_a], [:foo, :bar, select_all_b]]
      }

      it{ should eq(expected) }

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-sql-0.16.3 spec/processor/test_on_set_operator.rb
alf-sql-0.16.2 spec/processor/test_on_set_operator.rb
alf-sql-0.16.1 spec/processor/test_on_set_operator.rb
alf-sql-0.16.0 spec/processor/test_on_set_operator.rb
alf-sql-0.15.0 spec/processor/test_on_set_operator.rb