summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/validate_array_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/validate_array_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/validate_array_spec.rb')
-rw-r--r--spec/unit/puppet/parser/functions/validate_array_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/puppet/parser/functions/validate_array_spec.rb b/spec/unit/puppet/parser/functions/validate_array_spec.rb
index 8eee72a..4b31cfd 100644
--- a/spec/unit/puppet/parser/functions/validate_array_spec.rb
+++ b/spec/unit/puppet/parser/functions/validate_array_spec.rb
@@ -9,12 +9,12 @@ describe Puppet::Parser::Functions.function(:validate_array) do
%w{ true false }.each do |the_string|
it "should not compile when #{the_string} is a string" do
Puppet[:code] = "validate_array('#{the_string}')"
- expect { scope.compiler.compile }.should raise_error(Puppet::ParseError, /is not an Array/)
+ expect { scope.compiler.compile }.to raise_error(Puppet::ParseError, /is not an Array/)
end
it "should not compile when #{the_string} is a bare word" do
Puppet[:code] = "validate_array(#{the_string})"
- expect { scope.compiler.compile }.should raise_error(Puppet::ParseError, /is not an Array/)
+ expect { scope.compiler.compile }.to raise_error(Puppet::ParseError, /is not an Array/)
end
end
@@ -32,7 +32,7 @@ describe Puppet::Parser::Functions.function(:validate_array) do
$foo = undef
validate_array($foo)
ENDofPUPPETcode
- expect { scope.compiler.compile }.should raise_error(Puppet::ParseError, /is not an Array/)
+ expect { scope.compiler.compile }.to raise_error(Puppet::ParseError, /is not an Array/)
end
end
end