Sha256: 075cc3150049347f4e71cf7402e0f8d82250982c00a2bff142b493cbf7449fc8
Contents?: true
Size: 556 Bytes
Versions: 5
Compression:
Stored size: 556 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Ungroup do let(:input){ [] } subject{ Ungroup.run(argv) } before do subject.should be_a(Alf::Operator::Relational::Ungroup) subject.operands.should eq([input]) end context "without name" do let(:argv){ [input] } specify{ subject.attribute.should eq(:grouped) } end context "with a name" do let(:argv){ [input] + %w{-- attrname} } specify{ subject.attribute.should eq(:attrname) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems