summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/validate_string_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/validate_string_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/validate_string_spec.rb')
-rw-r--r--spec/unit/puppet/parser/functions/validate_string_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/puppet/parser/functions/validate_string_spec.rb b/spec/unit/puppet/parser/functions/validate_string_spec.rb
index 007b4ca..3b4fb3e 100644
--- a/spec/unit/puppet/parser/functions/validate_string_spec.rb
+++ b/spec/unit/puppet/parser/functions/validate_string_spec.rb
@@ -29,7 +29,7 @@ describe Puppet::Parser::Functions.function(:validate_string) do
it "should not compile when #{the_string} is a bare word" do
Puppet[:code] = "validate_string(#{the_string})"
- expect { scope.compiler.compile }.should raise_error(Puppet::ParseError, /is not a string/)
+ expect { scope.compiler.compile }.to raise_error(Puppet::ParseError, /is not a string/)
end
end