Sha256: 25545f706e32324c517e36771d9609d4b9649e27631993a64316c38bb9399b0d

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

describe CLIForge::Runner, "#start" do
  include_context "fixture config"

  subject {
    described_class.new(config)
  }

  let(:default_command) {
    double("DefaultCommand").tap do |command|
      command.stub(:call) { "Called and stuff" }
    end
  }

  describe "edge cases" do

    it "should not modify the input arguments" do
      config.register_command(:default, default_command)

      arguments = ["default", "and", "stuff"]

      subject.start(arguments)

      expect(arguments).to eq(["default", "and", "stuff"])
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cli-forge-0.1.0 spec/unit/cli_forge/runner/start_spec.rb