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