summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-06 18:14:47 -0700
committerPete Higgins <pete@peterhiggins.org>2020-05-06 18:14:53 -0700
commit011eb4b1826d1f0cda4bddac526f938cc0cb6cef (patch)
treee90e55af2e3acdff509a9135508dd961a1ba78c4 /spec
parent2d01023f5ef084449906aa75d16ed876220615fd (diff)
downloadchef-011eb4b1826d1f0cda4bddac526f938cc0cb6cef.tar.gz
Update method name in launchd provider unit tests.lcg/fix-unified-mode-launchd
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec')
-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