summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2014-07-09 16:05:27 -0700
committersersut <serdar@opscode.com>2014-07-14 13:18:31 -0700
commit04612158ac256ce46faad599e141ff7d1161fd66 (patch)
tree5d6ff018c0173c2ec0282bf9e68357964a06e578 /spec/support/shared/functional
parent3ec42a522a5b40d1ef217f23831b7417bda65761 (diff)
downloadchef-04612158ac256ce46faad599e141ff7d1161fd66.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/support/shared/functional')
-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
-