Sha256: d365d078e6fd19663412465805f6e67ed4ddcee4bee26cada3d9ce1fe4c62eba
Contents?: true
Size: 753 Bytes
Versions: 2
Compression:
Stored size: 753 Bytes
Contents
require 'spec_helper' module Alf module Operator::Relational describe Union do let(:operator_class){ Union } it_should_behave_like("An operator class") let(:left) {[ {:city => 'London'}, {:city => 'Paris'}, {:city => 'Paris'} ]} let(:right) {[ {:city => 'Oslo'}, {:city => 'Paris'} ]} let(:operator){ Union.run([]) } subject{ operator.to_a } describe "when applied on non disjoint sets" do before{ operator.pipe [left, right] } let(:expected){[ {:city => 'London'}, {:city => 'Paris'}, {:city => 'Oslo'} ]} it { should == expected } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.10.1 | spec/unit/operator/relational/test_union.rb |
alf-0.10.0 | spec/unit/operator/relational/test_union.rb |