Sha256: a5cdef498e744763103b574ba7216c45b75ddc18a6a2ecc0e215445694ec06a6

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'
module Alf
  describe Shell, ".from_argv(argv, TupleComputation)" do

    subject{ Shell.from_argv(argv, TupleComputation) }

    describe "from an Array with coercions" do
      let(:argv){ ["hello", "who", "hello2", "2"] }
      let(:expected){
        TupleComputation.new(
          :hello => Alf::TupleExpression.coerce("who"), 
          :hello2 => Alf::TupleExpression.coerce("2"))
      }
      it{ should eql(expected) }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alf-shell-0.14.0 spec/unit/from_argv/test_to_tuple_computation.rb
alf-shell-0.13.1 spec/unit/from_argv/test_to_tuple_computation.rb
alf-shell-0.13.0 spec/unit/from_argv/test_to_tuple_computation.rb