diff options
author | sersut <serdar@opscode.com> | 2014-07-09 16:05:27 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-18 14:55:36 -0700 |
commit | 86dec02637834f43339366f71eed78c91f2d5a66 (patch) | |
tree | 58c8e9e9590ed229895ffd5535bdfb234d91dc3f /spec | |
parent | 5c536292421ba0e92873e8a4ff4b8623239c554c (diff) | |
download | chef-86dec02637834f43339366f71eed78c91f2d5a66.tar.gz |
Automatically find out the sid for Administrators so that the specs can run on boxes for which the administrators account is renamed.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/shared/functional/securable_resource.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb index 98c41c1f20..4efe7a69a1 100644 --- a/spec/support/shared/functional/securable_resource.rb +++ b/spec/support/shared/functional/securable_resource.rb @@ -240,7 +240,7 @@ shared_examples_for "a securable resource with existing target" do describe "when setting owner" do before do - resource.owner('Administrator') + resource.owner(SID.admin_account_name) resource.run_action(:create) end @@ -539,4 +539,3 @@ shared_examples_for "a securable resource without existing target" do end end - |