Sha256: 5e26c7d315a89be189e383bbce971295bcff71f6bf79e13229cc38de4ad16fd2

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

require 'spec_helper'
require 'conceptql/operators/before'
require_double('stream_for_temporal')

describe ConceptQL::Operators::Before do
  it_behaves_like(:temporal_operator)

  subject do
    described_class.new(left: StreamForTemporalDouble.new, right: StreamForTemporalDouble.new)
  end

  it 'should use proper where clause' do
    expect(subject.query(Sequel.mock).sql).to match('l.end_date < r.start_date')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conceptql-0.2.0 spec/conceptql/operators/before_spec.rb