diff options
Diffstat (limited to 'spec/unit/resource/osx_profile_spec.rb')
-rw-r--r-- | spec/unit/resource/osx_profile_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/unit/resource/osx_profile_spec.rb b/spec/unit/resource/osx_profile_spec.rb index 291b205466..e62c204fb7 100644 --- a/spec/unit/resource/osx_profile_spec.rb +++ b/spec/unit/resource/osx_profile_spec.rb @@ -29,11 +29,15 @@ describe Chef::Resource::OsxProfile do expect(resource.resource_name).to eql(:osx_profile) end - it "has a default action of install" do + it "the profile_name property is the name_property" do + expect(resource.profile_name).to eql("Test Profile Resource") + end + + it "sets the default action as :install" do expect(resource.action).to eql([:install]) end - it "accepts install and remove as actions" do + it "supports :install, :remove actions" do expect { resource.action :install }.not_to raise_error expect { resource.action :remove }.not_to raise_error end |