Sha256: b37351e25db0b4544a771e542103808e9c081f849b201da00571af6f18c1480f

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

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

    let(:input){ suppliers }
    subject{ Extend.run(argv) }

    before do
      subject.should be_a(Alf::Algebra::Extend)
      subject.operands.should eq([input])
    end

    context "a typical config" do
      let(:argv){ [input] + %w{-- big} + ["tested > 10"] }
      specify{
        subject.ext.should eq(Alf::TupleComputation[:big => Alf::TupleExpression["tested > 10"]])
      }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alf-shell-0.14.0 spec/unit/operator/test_extend.rb
alf-shell-0.13.1 spec/unit/operator/test_extend.rb
alf-shell-0.13.0 spec/unit/operator/test_extend.rb