Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Rephrase and tighten CLI spec test #38

Merged
merged 1 commit into from
May 2, 2017
Merged

(maint) Rephrase and tighten CLI spec test #38

merged 1 commit into from
May 2, 2017

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Apr 27, 2017

See rspec/rspec-expectations#985 for
rspec upstream discussion.


expect(exit_status).to eq(1)
PDK::CLI.run(['new'])
end.to raise_error(SystemExit) { |error|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only suggestion would be to change this to a { } block instead of do end purely because i'm stylistically against chaining methods to end

  expect { PDK::CLI.run(['new']) }.to raise_error(SystemExit) { |error|

Not a big deal, just a personal preference

@rodjek rodjek merged commit 206ffc7 into puppetlabs:master May 2, 2017
@rodjek rodjek deleted the improve-test branch May 2, 2017 09:40
@chelnak chelnak added the maintenance Internal maintenance work that shouldn't appear in the changelog label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance work that shouldn't appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants