Sha256: 6b469be35054771dab62636c1e26d38bfe77da98452e0e9bcca5b7adb8507e65

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    class Processor
      describe FromSelf, "on_with_exp" do

        subject{ FromSelf.new(builder(1)).on_with_exp(expr) }

        let(:expr){
          with_exp({t1: select_all}, select_all_t2)
        }

        let(:expected){
          with_exp({t1: select_all, t2: select_all_t2}, select_all_t2)
        }

        it{ should eq(expected) }

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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