summaryrefslogtreecommitdiff
path: root/spec/unit/resource/osx_profile_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/osx_profile_spec.rb')
-rw-r--r--spec/unit/resource/osx_profile_spec.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/unit/resource/osx_profile_spec.rb b/spec/unit/resource/osx_profile_spec.rb
index 291b205466..3a0b144183 100644
--- a/spec/unit/resource/osx_profile_spec.rb
+++ b/spec/unit/resource/osx_profile_spec.rb
@@ -21,19 +21,22 @@ require "spec_helper"
describe Chef::Resource::OsxProfile do
let(:resource) do
Chef::Resource::OsxProfile.new(
- "Test Profile Resource",
- run_context)
+ "fakey_fakerton")
end
it "has a resource name of profile" 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("fakey_fakerton")
+ 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