Sha256: 16c7554eaf5df505da0ab4b30e9a2b988640cc70024d514f7b8d98d2fb842d7a
Contents?: true
Size: 614 Bytes
Versions: 5
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Clip do let(:input){ [] } subject{ Clip.run(argv) } before do subject.should be_a(Alf::Operator::NonRelational::Clip) subject.attributes.should eq(Alf::AttrList[:a, :b]) subject.operands.should eq([input]) end context "--no-allbut" do let(:argv){ [input, "--", "a", "b"] } specify{ subject.allbut.should be_false } end context "--allbut" do let(:argv){ [input, "--allbut", "--", "a", "b"] } specify{ subject.allbut.should be_true } end end end
Version data entries
5 entries across 5 versions & 1 rubygems