Sha256: 86d83cd0bfad8e14c1716ddfaced02cb7433311613065339bc0c8af17d7c7fd4
Contents?: true
Size: 500 Bytes
Versions: 8
Compression:
Stored size: 500 Bytes
Contents
RSpec.configure do |config| Capybara.always_include_port = true config.before(type: :feature) do @current_site ||= FactoryGirl.build(:site) set_domain @current_site.custom_domain end config.before(type: :controller) do @request.env["devise.mapping"] = Devise.mappings[:user] @current_site ||= FactoryGirl.create(:site) @request.host = @current_site.custom_domain end end def set_domain(domain) default_url_options[:host] = Capybara.app_host = "http://#{domain}" end
Version data entries
8 entries across 8 versions & 1 rubygems