Sha256: 88493cac09230f8763ff640a27197e094af24a7a17c1f9338fd2da02d0e1c497
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Unwrap do let(:input){ suppliers } subject{ Unwrap.run(argv) } before do subject.should be_a(Alf::Algebra::Unwrap) subject.operands.should eq([input]) end context "without name" do let(:argv){ [input] } specify{ subject.attribute.should eq(:wrapped) } end context "with a name" do let(:argv){ [input] + %w{-- attrname} } specify{ subject.attribute.should eq(:attrname) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.14.0 | spec/unit/operator/test_unwrap.rb |
alf-shell-0.13.1 | spec/unit/operator/test_unwrap.rb |
alf-shell-0.13.0 | spec/unit/operator/test_unwrap.rb |