Sha256: 158426f7beebbd77bc8a451ab107ce473a2f301716f89f855acb3b029540e242
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [ :intersect, :& ].each do |method| describe Algebra::Intersection::Methods, "##{method}" do subject { object.send(method, other) } let(:described_class) { Relation } let(:header) { [ [ :id, Integer ] ] } let(:object) { described_class.new(header, [ [ 1 ] ].each) } let(:other) { described_class.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.4 | spec/unit/veritas/algebra/intersection/methods/intersect_spec.rb |