Skip to content

Commit

Permalink
CPD-2351 | Clarify skip-ci-status specs (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmagdy authored and glennpratt committed Sep 4, 2017
1 parent 467d515 commit 4f7a285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/moonshot/commands/build_spec.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
describe Moonshot::Commands::Build do

it 'should not handle --skip-ci-status and build correctly' do
it 'should raise RuntimeError when send --skip-ci-status param without GithubRelease plugin' do
cli_dispatcher = Moonshot::CommandLineDispatcher.new('build', subject, {})
parser = cli_dispatcher.send(:build_parser, subject)
expect { parser.parse(%w(--skip-ci-status)) }.to raise_error(RuntimeError)
end

it 'should handle --skip-ci-status and build correctly' do
it 'should not raise RuntimeError when send --skip-ci-status param with GithubRelease plugin' do
Moonshot.config = Moonshot::ControllerConfig.new
Moonshot.config do |c|
c.build_mechanism = Moonshot::BuildMechanism::GithubRelease.new('')
Expand Down

0 comments on commit 4f7a285

Please sign in to comment.