summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-06-02 14:56:35 -0700
committerJohn Keiser <jkeiser@opscode.com>2014-06-02 14:56:35 -0700
commita1d5a5d147afad5aa41c99e1b00ce0f543c33dae (patch)
tree0915a339b81e83b9bbf426ec2f8f71caacec021f /spec/support
parent9a1500be6d98828454a740c77403f1b3e74e28ed (diff)
downloadchef-zero-a1d5a5d147afad5aa41c99e1b00ce0f543c33dae.tar.gz
Honor :single_org => 'orgname' parameter everywhere
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/pedant.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/pedant.rb b/spec/support/pedant.rb
index d21a2f7..3ac1922 100644
--- a/spec/support/pedant.rb
+++ b/spec/support/pedant.rb
@@ -21,7 +21,11 @@
################################################################################
# You MUST specify the address of the server the API requests will be
# sent to. Only specify protocol, hostname, and port.
-chef_server 'http://127.0.0.1:8889'
+if ENV['SINGLE_ORG']
+ chef_server 'http://127.0.0.1:8889'
+else
+ chef_server 'http://127.0.0.1:8889/organizations/pedant'
+end
# If you are doing development testing, you can specify the address of
# the Solr server. The presence of this parameter will enable tests