Sha256: a892024e686b9ff5c50adaf97ca0a60d5e23659c5f3878cf5072b3716a6121ab

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

require 'json'

require 'spec_helper'

describe "Cmds::call" do
  it "is reusable" do
    args_cmd = Cmds.new "./test/echo_cmd.rb <%= arg %>"
    kwds_cmd = Cmds.new "./test/echo_cmd.rb <%= s %>"

    ["arg one", "arg two", "arg three"].each do |arg|
      [args_cmd.call([arg]), kwds_cmd.call(s: arg)].each do |result|
        expect_argv( result ).to eq [arg]
      end
    end
  end # is reusable
end # Cmds::run

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cmds-0.0.2 spec/cmds/call_spec.rb
cmds-0.0.1 spec/cmds/call_spec.rb