diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-21 23:18:40 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-21 23:18:40 -0500 |
| commit | b06767ee2d7c22c27d746d3e8d1b6effa37deaa6 (patch) | |
| tree | 1b31ca784215113e5962310299826616c8768cd7 /spec/unit/util | |
| parent | 5e18b8dc91b2313a96dd3a9ff9cb0a88bfe0d6a0 (diff) | |
Quashed commit of my fixes for #1010.
Diffstat (limited to 'spec/unit/util')
| -rwxr-xr-x | spec/unit/util/checksums.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/util/checksums.rb b/spec/unit/util/checksums.rb index 31cf24f5b..0e0d06c0d 100755 --- a/spec/unit/util/checksums.rb +++ b/spec/unit/util/checksums.rb @@ -14,7 +14,7 @@ describe Puppet::Util::Checksums do end content_sums = [:md5, :md5lite, :sha1, :sha1lite] - file_only = [:timestamp, :mtime] + file_only = [:ctime, :mtime] content_sums.each do |sumtype| it "should be able to calculate %s sums from strings" % sumtype do @@ -84,11 +84,11 @@ describe Puppet::Util::Checksums do end end - {:timestamp => :ctime, :mtime => :mtime}.each do |sum, method| + [:ctime, :mtime].each do |sum| describe("when using %s" % sum) do - it "should use the '#{method}' on the file to determine the timestamp" do + it "should use the '#{sum}' on the file to determine the ctime" do file = "/my/file" - stat = mock 'stat', method => "mysum" + stat = mock 'stat', sum => "mysum" File.expects(:stat).with(file).returns(stat) |
