require 'spec_helper' module Alf::Shell::Operator describe Join do let(:left) { suppliers } let(:right){ suppliers } subject{ Join.run(argv) } context "the default config" do let(:argv){ [left, right] } specify{ subject.should be_a(Alf::Algebra::Join) subject.operands.should eq([left, right]) } end end end