Code style fixup

This commit is contained in:
Brenda Wallace
2018-06-04 16:39:51 +12:00
parent fd405ccad0
commit 7737f41b7f

View File

@@ -104,12 +104,14 @@ RSpec.configure do |config|
# Prevent Poltergeist from fetching external URLs during feature tests
config.before(:each, js: true) do
page.driver.browser.url_blacklist = [
'gravatar.com',
'mapbox.com',
'okfn.org',
'googlecode.com'
] if page.driver.browser.respond_to?(:url_blacklist)
if page.driver.browser.respond_to?(:url_blacklist)
page.driver.browser.url_blacklist = [
'gravatar.com',
'mapbox.com',
'okfn.org',
'googlecode.com'
]
end
page.driver.browser.manage.window.maximize if page.driver.browser.respond_to?(:manage)
end