Sha256: b984b45afa32c0b89ec440608e1454bd8c8f4e6e2aae9bdd980dd039e8d8f631

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

require 'spec_helper'
module Alf
  module Sql
    class Processor
      describe Distinct, "on_set_quantified" do

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

        let(:expected){
          [:x, distinct]
        }

        context 'when already distinct' do
          let(:expr){
            Grammar.sexpr [:x, distinct]
          }

          it{ should eq(expected) }
        end

        context 'when not distinct' do
          let(:expr){
            Grammar.sexpr [:x, all]
          }

          it{ should eq(expected) }
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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