Sha256: da7ecf3192996a5442eff4fde1efcfcb38fe0963b20cd1080249d9b7ce0c4ba9

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

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

        subject{ Distinct.new(Builder.new).call(expr) }

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

          it{ should eq(select_distinct) }
        end

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

          it{ should eq(with_exp(nil, select_distinct)) }
        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_distinct.rb
alf-sql-0.16.2 spec/processor/test_distinct.rb
alf-sql-0.16.1 spec/processor/test_distinct.rb
alf-sql-0.16.0 spec/processor/test_distinct.rb
alf-sql-0.15.0 spec/processor/test_distinct.rb