Sha256: b7a5d515a11c5bf25c9e366fb65df6b84603e3692bba7cf55ecbaab29604bcc9

Contents?: true

Size: 475 Bytes

Versions: 10

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'
require 'conceptql/nodes/after'
require_double('stream_for_temporal')

describe ConceptQL::Nodes::After do
  it 'behaves itself' do
    ConceptQL::Nodes::After.new.must_behave_like(:temporal_node)
  end

  subject do
    ConceptQL::Nodes::After.new(left: StreamForTemporalDouble.new, right: StreamForTemporalDouble.new)
  end

  it 'should use proper where clause' do
    subject.query(Sequel.mock).sql.must_match 'l.start_date > r.end_date'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
conceptql-0.1.1 spec/conceptql/nodes/after_spec.rb
conceptql-0.1.0 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.9 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.8 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.7 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.6 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.5 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.4 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.3 spec/conceptql/nodes/after_spec.rb
conceptql-0.0.1 spec/conceptql/nodes/after_spec.rb