Sha256: 1a0f2db194c0808f44bbb2e0d979f4a3a0362ce9218ff8ce676ede8e302cf5f8

Contents?: true

Size: 367 Bytes

Versions: 12

Compression:

Stored size: 367 Bytes

Contents

module Mtwarden
	module TestingSupport
		module SubdomainHelpers
			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
		end
	end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mtwarden-3.3.4 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.3.3 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.3.2 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.3.1 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.3.0 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.2.0 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.1.2 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.1.1 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.1.0 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.0.3 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.0.2 lib/mtwarden/testing_support/subdomain_helpers.rb
mtwarden-3.0.1 lib/mtwarden/testing_support/subdomain_helpers.rb