summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/get_module_path_spec.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2013-02-06 08:14:08 -0800
committerJeff McCune <jeff@puppetlabs.com>2013-02-06 08:14:08 -0800
commit8dd82d318a05c5e35bd2d8853fce8b8bf1b2c2d0 (patch)
treef630123d27c32d4947e853b82bc39a2909c6195a /spec/unit/puppet/parser/functions/get_module_path_spec.rb
parent4d24bd33b038aaf261342641e14fdced1371fe8d (diff)
parent5f22933e75058310af06a993d663be2da7759c3d (diff)
Merge branch 'stephenrjohnson-bug/master/15572_rspec_tests'
* stephenrjohnson-bug/master/15572_rspec_tests: ammend .should raise_error to .to raise_error closes #97
Diffstat (limited to 'spec/unit/puppet/parser/functions/get_module_path_spec.rb')
-rw-r--r--spec/unit/puppet/parser/functions/get_module_path_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/puppet/parser/functions/get_module_path_spec.rb b/spec/unit/puppet/parser/functions/get_module_path_spec.rb
index e761706..486bef6 100644
--- a/spec/unit/puppet/parser/functions/get_module_path_spec.rb
+++ b/spec/unit/puppet/parser/functions/get_module_path_spec.rb
@@ -15,11 +15,11 @@ describe Puppet::Parser::Functions.function(:get_module_path) do
end
it 'should only allow one argument' do
- expect { scope.function_get_module_path([]) }.should raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/)
- expect { scope.function_get_module_path(['1','2','3']) }.should raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/)
+ expect { scope.function_get_module_path([]) }.to raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/)
+ expect { scope.function_get_module_path(['1','2','3']) }.to raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/)
end
it 'should raise an exception when the module cannot be found' do
- expect { scope.function_get_module_path(['foo']) }.should raise_error(Puppet::ParseError, /Could not find module/)
+ expect { scope.function_get_module_path(['foo']) }.to raise_error(Puppet::ParseError, /Could not find module/)
end
describe 'when locating a module' do
let(:modulepath) { "/tmp/does_not_exist" }