Sha256: 04916c4d34ec792fdcd5954ceab6054312a6615124499408a701980c60e525cd
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Group do let(:input){ suppliers } subject{ Group.run(argv) } before do subject.should be_a(Alf::Algebra::Group) subject.operands.should eq([input]) end context "--no-allbut" do let(:argv){ [input, "--", "time", "b", "--", "as"] } specify{ subject.attributes.should eq(Alf::AttrList[:time, :b]) subject.as.should eq(:as) subject.allbut.should eq(false) } end context "--allbut" do let(:argv){ [input, "--allbut", "--","a", "--", "as"] } specify{ subject.attributes.should eq(Alf::AttrList[:a]) subject.as.should eq(:as) subject.allbut.should eq(true) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.14.0 | spec/unit/operator/test_group.rb |
alf-shell-0.13.1 | spec/unit/operator/test_group.rb |
alf-shell-0.13.0 | spec/unit/operator/test_group.rb |