Sha256: 5bc12bfeccca8fdb5bcd26bca2d5d5e9b0886b89e3809ab6937e70022bbd9627
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [ :difference, :- ].each do |method| describe Algebra::Difference::Methods, "##{method}" do subject { object.send(method, other) } let(:described_class) { Relation } let(:header) { [ [ :id, Integer ] ] } let(:other) { described_class.new(header, LazyEnumerable.new([ [ 2 ] ])) } let(:object) { described_class.new(header, LazyEnumerable.new([ [ 1 ] ])) } it { should be_instance_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 |
---|---|
axiom-0.1.0 | spec/unit/axiom/algebra/difference/methods/difference_spec.rb |