0
0
Fork 0

Fix force_ssl conditional (#6201)

This commit is contained in:
Yamagishi Kazutoshi 2018-01-07 23:19:23 +09:00 committed by Eugen Rochko
parent da809f9eec
commit 1d92b90be9
3 changed files with 10 additions and 14 deletions

View file

@ -46,7 +46,7 @@ RSpec.configure do |config|
config.include ActiveSupport::Testing::TimeHelpers
config.before :each, type: :feature do
https = Rails.env.production? || ENV['LOCAL_HTTPS'] == 'true'
https = ENV['LOCAL_HTTPS'] == 'true'
Capybara.app_host = "http#{https ? 's' : ''}://#{ENV.fetch('LOCAL_DOMAIN')}"
end