summaryrefslogtreecommitdiff
path: root/chef/spec/unit/resource/remote_file_spec.rb
diff options
context:
space:
mode:
authorCaleb Tennis <caleb.tennis@gmail.com>2009-04-17 23:13:39 +0000
committerCaleb Tennis <caleb.tennis@gmail.com>2009-04-17 23:13:48 +0000
commit549ae9da829fe8645b896b28eb8d3564cfc60880 (patch)
tree14f0c5ca55391e78ec479c9580bd1bb7f2080397 /chef/spec/unit/resource/remote_file_spec.rb
parent5081a154d96647e4513ac23a84ca45de699a2ccd (diff)
downloadchef-549ae9da829fe8645b896b28eb8d3564cfc60880.tar.gz
Don't download a file if a checksum is specified and we match
Diffstat (limited to 'chef/spec/unit/resource/remote_file_spec.rb')
-rw-r--r--chef/spec/unit/resource/remote_file_spec.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/chef/spec/unit/resource/remote_file_spec.rb b/chef/spec/unit/resource/remote_file_spec.rb
index 24ed30f4e0..cc31b543ef 100644
--- a/chef/spec/unit/resource/remote_file_spec.rb
+++ b/chef/spec/unit/resource/remote_file_spec.rb
@@ -49,5 +49,16 @@ describe Chef::Resource::RemoteFile do
@resource.cookbook.should == nil
end
end
+
+ describe "checksum" do
+ it "should accept a string for the checksum object" do
+ @resource.checksum "asdf"
+ @resource.checksum.should eql("asdf")
+ end
+
+ it "should default to nil" do
+ @resource.checksum.should == nil
+ end
+ end
-end \ No newline at end of file
+end