summaryrefslogtreecommitdiff
path: root/spec/unit/provider
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-05-06 18:40:05 -0700
committerGitHub <noreply@github.com>2020-05-06 18:40:05 -0700
commit740396debdde52176a91c6a78d949f7f345ef69e (patch)
treeb2bda892f4db96f8e8d326a7092c7473683c1d2e /spec/unit/provider
parent021df024c4ea8529557c080ffe9ffb4133ee7ae8 (diff)
parent011eb4b1826d1f0cda4bddac526f938cc0cb6cef (diff)
downloadchef-740396debdde52176a91c6a78d949f7f345ef69e.tar.gz
Merge pull request #9812 from chef/lcg/fix-unified-mode-launchd
Diffstat (limited to 'spec/unit/provider')
-rw-r--r--spec/unit/provider/launchd_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/provider/launchd_spec.rb b/spec/unit/provider/launchd_spec.rb
index 53b56b4960..69f0f315d0 100644
--- a/spec/unit/provider/launchd_spec.rb
+++ b/spec/unit/provider/launchd_spec.rb
@@ -131,8 +131,8 @@ describe Chef::Provider::Launchd do
new_resource.program "/Library/scripts/call_mom.sh"
new_resource.time_out 300
new_resource.start_calendar_interval "Hour" => 10, "Weekday" => 7
- expect(provider.content?).to be_truthy
- expect(provider.content).to eql(test_plist)
+ expect(provider.file_content?).to be_truthy
+ expect(provider.file_content).to eql(test_plist)
end
end
@@ -147,8 +147,8 @@ describe Chef::Provider::Launchd do
new_resource.program "/Library/scripts/call_mom.sh"
new_resource.time_out 300
new_resource.start_calendar_interval allowed
- expect(provider.content?).to be_truthy
- expect(provider.content).to eql(test_plist_multiple_intervals)
+ expect(provider.file_content?).to be_truthy
+ expect(provider.file_content).to eql(test_plist_multiple_intervals)
end
it "should allow all StartCalendarInterval keys" do
@@ -162,9 +162,9 @@ describe Chef::Provider::Launchd do
new_resource.program "/Library/scripts/call_mom.sh"
new_resource.time_out 300
new_resource.start_calendar_interval allowed
- expect(provider.content?).to be_truthy
+ expect(provider.file_content?).to be_truthy
%w{Minute Hour Day Weekday Month}.each do |key|
- expect(provider.content).to include("<key>#{key}</key>")
+ expect(provider.file_content).to include("<key>#{key}</key>")
end
end
@@ -188,8 +188,8 @@ describe Chef::Provider::Launchd do
describe "hash is passed" do
it "should produce the test_plist content from the plist_hash property" do
new_resource.plist_hash test_hash
- expect(provider.content?).to be_truthy
- expect(provider.content).to eql(test_plist)
+ expect(provider.file_content?).to be_truthy
+ expect(provider.file_content).to eql(test_plist)
end
end
end