module Mtwarden::TestingSupport::SubdomainHelpers
Public Instance Methods
within_account_subdomain() { || ... }
click to toggle source
# File lib/mtwarden/testing_support/subdomain_helpers.rb, line 5 def within_account_subdomain(&block) context "within a subdomain" do let(:subdomain_url) { "http://#{account.subdomain}.example.com" } before { Capybara.default_host = subdomain_url } after { Capybara.default_host = "http://example.com" } yield end end