diff options
Diffstat (limited to 'chef/spec/unit/resource/link_spec.rb')
-rw-r--r-- | chef/spec/unit/resource/link_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chef/spec/unit/resource/link_spec.rb b/chef/spec/unit/resource/link_spec.rb index b519303f9f..0a79506ebd 100644 --- a/chef/spec/unit/resource/link_spec.rb +++ b/chef/spec/unit/resource/link_spec.rb @@ -51,6 +51,14 @@ describe Chef::Resource::Link do @resource.target_file.should eql("fakey_fakerton") end + it "uses the target_file as the identity attribute" do + @resource.identity.should == "fakey_fakerton" + end + + it "has state attributes :link_type, :to, and permissions attributes" do + @resource.state.keys.should =~ [:owner, :mode, :group, :link_type, :to] + end + it "should accept a string as the link source via 'to'" do lambda { @resource.to "/tmp" }.should_not raise_error(ArgumentError) end |