summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/get_module_path_spec.rb
diff options
context:
space:
mode:
authorstephen <stephen@puppetlabs.com>2012-10-16 11:54:14 +0100
committerJeff McCune <jeff@puppetlabs.com>2013-02-06 08:12:42 -0800
commit5f22933e75058310af06a993d663be2da7759c3d (patch)
treef630123d27c32d4947e853b82bc39a2909c6195a /spec/unit/puppet/parser/functions/get_module_path_spec.rb
parent4d24bd33b038aaf261342641e14fdced1371fe8d (diff)
downloadpuppet-stdlib-5f22933e75058310af06a993d663be2da7759c3d.tar.gz
puppet-stdlib-5f22933e75058310af06a993d663be2da7759c3d.tar.bz2
ammend .should raise_error to .to raise_error
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" }