Sha256: 86b469eec69395d11113a75fb338d121040765ad5153f32aa6976952b99b780f

Contents?: true

Size: 338 Bytes

Versions: 13

Compression:

Stored size: 338 Bytes

Contents

require 'spec_helper'
require 'simple_deploy/cli'

describe SimpleDeploy do

  it "should call the given sub command" do
    status_mock = mock 'status mock'
    ARGV = ['status', '-h']
    status_mock.should_receive(:show)
    SimpleDeploy::CLI::Status.should_receive(:new).and_return status_mock
    SimpleDeploy::CLI.start
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
simple_deploy-0.6.2 spec/cli_spec.rb
simple_deploy-0.6.1 spec/cli_spec.rb
simple_deploy-0.6.0 spec/cli_spec.rb
simple_deploy-0.5.6 spec/cli_spec.rb
simple_deploy-0.5.5 spec/cli_spec.rb
simple_deploy-0.5.4 spec/cli_spec.rb
simple_deploy-0.5.3 spec/cli_spec.rb
simple_deploy-0.5.2 spec/cli_spec.rb
simple_deploy-0.5.1 spec/cli_spec.rb
simple_deploy-0.5.0 spec/cli_spec.rb
simple_deploy-0.4.8 spec/cli_spec.rb
simple_deploy-0.4.7 spec/cli_spec.rb
simple_deploy-0.4.6 spec/cli_spec.rb