Sha256: 67b9b338792aa203808557470777f5ca3da68a9fefdbfc3d98fdfb530c3c4464

Contents?: true

Size: 411 Bytes

Versions: 50

Compression:

Stored size: 411 Bytes

Contents

require 'capybara/rails'
require 'capybara/rspec'

def set_subdomain_host!(subdomain)
  @request.try { |it| it.host = Mumukit::Platform.application.organic_domain subdomain }
  Capybara.app_host = Mumukit::Platform.application.organic_url subdomain
end

def set_implicit_central!
  @request.try { |it| it.host = Mumukit::Platform.application.domain }
  Capybara.app_host = Mumukit::Platform.application.url
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
mumuki-laboratory-6.1.5 spec/capybara_helper.rb
mumuki-laboratory-6.0.4 spec/capybara_helper.rb
mumuki-laboratory-6.1.4 spec/capybara_helper.rb
mumuki-laboratory-6.1.3 spec/capybara_helper.rb
mumuki-laboratory-6.0.3 spec/capybara_helper.rb
mumuki-laboratory-6.1.2 spec/capybara_helper.rb
mumuki-laboratory-6.1.1 spec/capybara_helper.rb
mumuki-laboratory-6.1.0 spec/capybara_helper.rb
mumuki-laboratory-6.0.2 spec/capybara_helper.rb
mumuki-laboratory-6.0.1 spec/capybara_helper.rb
mumuki-laboratory-6.0.0 spec/capybara_helper.rb
mumuki-laboratory-5.13.0 spec/capybara_helper.rb
mumuki-laboratory-5.12.1 spec/capybara_helper.rb
mumuki-laboratory-5.12.0 spec/capybara_helper.rb
mumuki-laboratory-5.11.0 spec/capybara_helper.rb
mumuki-laboratory-5.10.4 spec/capybara_helper.rb
mumuki-laboratory-5.10.3 spec/capybara_helper.rb
mumuki-laboratory-5.10.2 spec/capybara_helper.rb
mumuki-laboratory-5.10.1 spec/capybara_helper.rb
mumuki-laboratory-5.10.0 spec/capybara_helper.rb