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