-
Notifications
You must be signed in to change notification settings - Fork 71
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
Various improvements to the spec_helper #505
Conversation
@@ -1,3 +1,8 @@ | |||
<%- if @configs['mock_with'] -%> | |||
RSpec.configure do |c| | |||
c.mock_with <%= @configs['mock_with'] %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this block is now duplicate. We probably can remove the other one. This need to be tested within one module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just verified this on puppet-mongodb (in my local branch) that the later one is indeed redundant and it must be done here at the top.
Updated to include various updates. See the individual commits for details. |
can you please run this against one module and link the PR to this one? |
Otherwise it won't be used
Since rspec-puppet-facts 1.1.0 puppetversion is set. The facter version is set since 1.8.0. The concat_basedir fact isn't used since puppetlabs-concat 2.0.
This recommended in the current rspec-puppet README and ensures that the report covers all parallel spec workers.
The file has a .rb extension so this should be autodetected by any decent vim setup.
voxpupuli/puppet-nginx#1264 as well |
Otherwise it won't be used