Sha256: 7b08e66b082896253fe07fbd032ea60e9c56c611cdd4dd2226725b63549ffe6f
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'spec_helper' [ :intersect, :& ].each do |method| describe "Veritas::Algebra::Intersection::Methods##{method}" do subject { object.send(method, other) } let(:klass) { Relation } let(:header) { [ [ :id, Integer ] ] } let(:object) { klass.new(header, [ [ 1 ] ].each) } let(:other) { klass.new(header, [ [ 2 ] ].each) } it { should be_kind_of(Algebra::Intersection) } it 'behaves the same as Array#&' do should == (object.to_a & other.to_a) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/algebra/intersection/methods/intersect_spec.rb |