Sha256: 659782829c37997b7b3b51a15578910623d727e7927ef7303e4158c75cee6aeb

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

module RPS
  describe CLI do
    it "creates a default runner" do
      runner = mock(Runner, :ui => nil)

      Runner.should_receive(:new).with(instance_of(UI)).and_return(runner)
      runner.should_receive(:run)

      CLI.new.run
    end

    it "takes an optional arguments list" do
      CLI.new.should be_instance_of(CLI)
      CLI.new(["foo", "bar"]).should be_instance_of(CLI)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rps-0.0.3 spec/rps/cli_spec.rb