Sha256: c02f0aeb2931de729c845eb6c2b4a1f77249c600f7dd9f49b1dc56758fe81c43

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    class Processor
      describe Clip, "on_select_list" do

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

        context 'when included' do
          let(:expr){ select_list_ab }

          it{ should eq(select_list_a) }
        end

        context 'when unique' do
          let(:expr){ select_list_a }

          it{ should eq(select_list_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/clip/test_on_select_list.rb
alf-sql-0.16.2 spec/processor/clip/test_on_select_list.rb
alf-sql-0.16.1 spec/processor/clip/test_on_select_list.rb
alf-sql-0.16.0 spec/processor/clip/test_on_select_list.rb
alf-sql-0.15.0 spec/processor/clip/test_on_select_list.rb