Sha256: bd06cf78f15957e31e81792fbc6e71627df465042d65f26461f2e8e046904f88
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [:union, :|].each do |method| describe Algebra::Union::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::Union) } it 'behaves the same as Array#|' do should == object.to_a | other.to_a end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/algebra/union/methods/union_spec.rb |
axiom-0.1.1 | spec/unit/axiom/algebra/union/methods/union_spec.rb |