Last active
January 4, 2016 07:39
-
-
Save chriseckhardt/8590109 to your computer and use it in GitHub Desktop.
This seems to bomb out with "Failure/Error: @content = catalogue.resource('file', '/etc/statsd/config.js').send(:parameters)[:content] ArgumentError: wrong number of arguments (0 for 1)"
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
# ... | |
it { should contain_file('/etc/statsd/config.js') | |
.with( | |
:ensure => 'file', | |
:require => 'Package[nodejs-statsd]', | |
) | |
} | |
describe '/etc/statsd/config.js' do | |
before :each do | |
@content = catalogue.resource('file', '/etc/statsd/config.js').send(:parameters)[:content] | |
end | |
it 'should use empty string for globalPrefix in config.js' do | |
@content.should match('globalPrefix: ""') | |
end | |
it 'should use empty string for prefixStats in config.js' do | |
@content.should match(', prefixStats: ""') | |
end | |
it 'should use port 2003 for the graphitePort in config.js' do | |
@content.should match(', graphitePort: 2003') | |
end | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment