diff options
author | Caleb Tennis <caleb.tennis@gmail.com> | 2009-04-17 23:13:39 +0000 |
---|---|---|
committer | Caleb Tennis <caleb.tennis@gmail.com> | 2009-04-17 23:13:48 +0000 |
commit | 549ae9da829fe8645b896b28eb8d3564cfc60880 (patch) | |
tree | 14f0c5ca55391e78ec479c9580bd1bb7f2080397 /chef/spec/unit/resource/remote_file_spec.rb | |
parent | 5081a154d96647e4513ac23a84ca45de699a2ccd (diff) | |
download | chef-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.rb | 13 |
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 |