Sha256: f372f433a155b6b5c5393cd3f1f940728317c9d44a0997c15193ebd31a6eb3f5
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
require 'spec_helper' require 'conceptql/operators/person_filter' require_relative 'query_double' describe ConceptQL::Operators::PersonFilter do it_behaves_like(:evaluator) describe '#query' do it 'uses right stream as argument to PERSON_FILTER against left stream' do double1 = QueryDouble.new(1) double2 = QueryDouble.new(2) expect(ConceptQL::Operators::PersonFilter.new(left: double1, right: double2).query(Sequel.mock).sql).to eq("SELECT * FROM (SELECT * FROM table1) AS t1 WHERE (person_id IN (SELECT person_id FROM table2 GROUP BY person_id))") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conceptql-0.2.0 | spec/conceptql/operators/person_filter_spec.rb |