Skip to content

Instantly share code, notes, and snippets.

@chriseckhardt
Last active January 4, 2016 07:39
Show Gist options
  • Save chriseckhardt/8590109 to your computer and use it in GitHub Desktop.
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)"
# ...
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