Sha256: 0a5a665b43a1da1964a798933b5816f0056d61eadd4ca046f94f729bbb0a7334
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
require 'spec_helper' [ :difference, :- ].each do |method| describe "Veritas::Algebra::Difference::Methods##{method}" do subject { object.send(method, other) } let(:klass) { Relation } let(:header) { [ [ :id, Integer ] ] } let(:other) { klass.new(header, [ [ 2 ] ].each) } let(:object) { klass.new(header, [ [ 1 ] ].each) } it { should be_kind_of(Algebra::Difference) } 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/difference/methods/difference_spec.rb |