-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes cli debug logging and stops calling codeclimate from spec_helper since the usage is outdated
- Loading branch information
Showing
5 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'pry' | ||
|
||
module Moonshot | ||
module Commands | ||
class Console < Moonshot::Command | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe Moonshot::Command do | ||
describe '#parser' do | ||
subject { described_class.new.parser } | ||
|
||
it 'should parse the verbose option' do | ||
allow(described_class).to receive(:usage) | ||
subject.parse('-v') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
describe Moonshot::Commands::Console do | ||
describe '#execute' do | ||
it 'should start a pry session' do | ||
expect(Aws::EC2::Client).to receive(:new) | ||
expect(Aws::IAM::Client).to receive(:new) | ||
expect(Aws::AutoScaling::Client).to receive(:new) | ||
expect(Aws::CloudFormation::Client).to receive(:new) | ||
expect(Pry).to receive(:start) | ||
subject.execute | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
require 'codeclimate-test-reporter' | ||
CodeClimate::TestReporter.start | ||
|
||
if ENV['COVERAGE'] | ||
require 'simplecov' | ||
|
||
|