diff options
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 |