Do not take options from Setting (settings are used from test env). Take it from ENV.

This commit is contained in:
Martin Edenhofer 2016-02-01 20:51:36 +01:00
parent 9808b0873f
commit 184d47ffce

View file

@ -12,9 +12,11 @@ class AaaGettingStartedTest < TestCase
mailbox_user = ENV['MAILBOX_INIT'].split(':')[0]
mailbox_password = ENV['MAILBOX_INIT'].split(':')[1]
fqdn = Setting.get('fqdn')
http_type = Setting.get('http_type')
url = "#{http_type}://#{fqdn}"
url = if ENV['BROWSER_URL']
ENV['BROWSER_URL']
else
'http://localhost:3000'
end
@browser = browser_instance
location( url: browser_url )