spec/cli_spec.rb in simple_deploy-0.6.2 vs spec/cli_spec.rb in simple_deploy-0.6.3

- old
+ new

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