Sha256: 4fc15cced5bdb2740e6e89e13f12ea9ed2db9116287ff958d76432b2ef0ffb22
Contents?: true
Size: 378 Bytes
Versions: 7
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true def switch_to_host(host = "lvh.me") app_host = (host ? "http://#{host}" : nil) Capybara.app_host = app_host end def switch_to_default_host switch_to_host nil end Capybara.configure do |config| config.always_include_port = true end RSpec.configure do |config| config.before :each, type: :feature do switch_to_default_host end end
Version data entries
7 entries across 7 versions & 1 rubygems