Sha256: 773601a87139a1a044ff52593fff7010a1a39bb6c87ba996ccba72aabeb5b302

Contents?: true

Size: 618 Bytes

Versions: 3

Compression:

Stored size: 618 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'veritas/relation/gateway'

describe Relation::Gateway, '#intersect' do
  subject { object.intersect(other) }

  let(:adapter)         { mock('Adapter')                        }
  let(:relation)        { mock('Relation')                       }
  let(:object)          { described_class.new(adapter, relation) }
  let(:operation)       { :intersect                             }
  let(:factory)         { Algebra::Intersection                  }
  let(:binary_relation) { mock(factory)                          }

  it_should_behave_like 'a binary relation method'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
veritas-do-adapter-0.0.7 spec/unit/veritas/relation/gateway/intersect_spec.rb
veritas-do-adapter-0.0.6 spec/unit/veritas/relation/gateway/intersect_spec.rb
veritas-do-adapter-0.0.5 spec/unit/veritas/relation/gateway/intersect_spec.rb