diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-06 13:44:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-06 13:44:43 -0700 |
commit | 76130d83d8447b28efb4d2863d134860c73d2112 (patch) | |
tree | d44c154402467224887e19fb2a863c275865dc1f /spec/unit/provider/osx_profile_spec.rb | |
parent | e2f21177cae1da7dc462a8f17a3f73e5c915cba0 (diff) | |
download | chef-76130d83d8447b28efb4d2863d134860c73d2112.tar.gz |
fix missing stubs for install_profile
otherwise we really shell_out to profile
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/provider/osx_profile_spec.rb')
-rw-r--r-- | spec/unit/provider/osx_profile_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/provider/osx_profile_spec.rb b/spec/unit/provider/osx_profile_spec.rb index 624ef8cca9..08d2eebdc4 100644 --- a/spec/unit/provider/osx_profile_spec.rb +++ b/spec/unit/provider/osx_profile_spec.rb @@ -139,6 +139,7 @@ describe Chef::Provider::OsxProfile do new_resource.profile test_profile allow(provider).to receive(:get_installed_profiles).and_return(no_profiles) provider.load_current_resource + expect(provider).to receive(:install_profile) expect { provider.run_action(:install) }.to_not raise_error end @@ -154,6 +155,7 @@ describe Chef::Provider::OsxProfile do new_resource.profile test_profile all_profiles["_computerlevel"][1]["ProfileUUID"] = "1781fbec-3325-565f-9022-9bb39245d4dd" provider.load_current_resource + expect(provider).to receive(:install_profile) expect { provider.run_action(:install) }.to_not raise_error end |