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

Version Path
decidim-0.0.1.alpha9 decidim-dev/lib/decidim/test/rspec_support/capybara.rb
decidim-0.0.1.alpha8 decidim-dev/lib/decidim/test/rspec_support/capybara.rb
decidim-0.0.1.alpha7 decidim-dev/lib/decidim/test/rspec_support/capybara.rb
decidim-0.0.1.alpha6 decidim-dev/lib/decidim/test/rspec_support/capybara.rb
decidim-0.0.1.alpha5 decidim-dev/lib/decidim/test/rspec_support/capybara.rb
decidim-0.0.1.alpha4 decidim-dev/lib/decidim/test/rspec_support/capybara.rb
decidim-0.0.1.alpha3 decidim-dev/lib/decidim/test/rspec_support/capybara.rb