Sha256: 50b1c8e71580d9f18cd19ff62c30d17cba3fd0859c19537e8f3a41d46bdff2ea
Contents?: true
Size: 759 Bytes
Versions: 4
Compression:
Stored size: 759 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.datasets = [left, right] } let(:expected){[ {:city => 'London'}, {:city => 'Paris'}, {:city => 'Oslo'} ]} it { should == expected } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems