Sha256: 9448d478bdf1f99dce460d17846baf6b09dc4c1a46aa21c4c1f0c8a006b025f7

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    class Processor
      describe Clip do

        subject{ Clip.new([:a], Builder.new).call(expr) }

        context 'on a select_exp' do
          let(:expr){ select_ab }

          it{ should eq(select_a) }
        end

        context 'on a with_exp' do
          let(:expr){ with_exp(nil, select_ab) }

          it{ should eq(with_exp(nil, select_a)) }
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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