summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2014-07-09 16:05:27 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-07-18 14:55:36 -0700
commit86dec02637834f43339366f71eed78c91f2d5a66 (patch)
tree58c8e9e9590ed229895ffd5535bdfb234d91dc3f /spec
parent5c536292421ba0e92873e8a4ff4b8623239c554c (diff)
downloadchef-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.rb3
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
-