diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-12-10 14:39:24 -0800 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2010-12-10 14:42:21 -0800 |
| commit | 1d3192e6d7242c748477bb560a65fb7148f4df78 (patch) | |
| tree | 7fddfb47abc17cdf0f2a3e8e04fc452c72007e86 | |
| parent | 1aa815704036ede76b5d2daf5d01f744466e5f50 (diff) | |
maint: missing stub
This missing stub was raising an exception that, in versions of Mocha
less than 0.9.10, was mistaken for the exception that was being tested
for.
Paired-With: Nick Lewis <nick@puppetlabs.com>
| -rwxr-xr-x | spec/unit/type/file_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/type/file_spec.rb b/spec/unit/type/file_spec.rb index 7d93dfd64..4fcad07e1 100755 --- a/spec/unit/type/file_spec.rb +++ b/spec/unit/type/file_spec.rb @@ -71,7 +71,7 @@ describe Puppet::Type.type(:file) do before { @file.stubs(:validate_checksum?).returns(true) } it "should fail if the checksum parameter and content checksums do not match" do - checksum = stub('checksum_parameter', :sum => 'checksum_b') + checksum = stub('checksum_parameter', :sum => 'checksum_b', :sum_file => 'checksum_b') @file.stubs(:parameter).with(:checksum).returns(checksum) property = stub('content_property', :actual_content => "something", :length => "something".length, :write => 'checksum_a') |
