Sha256: 80c68340c6a95880839cf53ad2d57b428edce086500f0f753e6a45b5af5969b6

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'
module Alf::Shell::Operator
  describe Unwrap do

    let(:input){ [] }
    subject{ Unwrap.run(argv) }

    before do
      subject.should be_a(Alf::Operator::Relational::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

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 spec/unit/alf-shell/operator/test_unwrap.rb
alf-0.12.1 spec/unit/alf-shell/operator/test_unwrap.rb
alf-0.12.0 spec/unit/alf-shell/operator/test_unwrap.rb
alf-0.11.1 spec/unit/alf-shell/operator/test_unwrap.rb
alf-0.11.0 spec/unit/alf-shell/operator/test_unwrap.rb