Sha256: a2868e0881521234deaa473f5588fd329d1012d2b6aec708bd6ab46c11d09329

Contents?: true

Size: 247 Bytes

Versions: 15

Compression:

Stored size: 247 Bytes

Contents

module SubdomainHelpers
	def within_account_subdomain
		let(:subdomain_url) { "http://#{account.subdomain}.example.com" }
		before { Capybara.default_host = subdomain_url } 
		after { Capybara.default_host = "http://example.com" }
		yield
	end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mtdevise-1.8.6 spec/support/subdomain_helpers.rb
mtdevise-1.8.5 spec/support/subdomain_helpers.rb
mtdevise-1.8.0 spec/support/subdomain_helpers.rb
mtdevise-1.7.11 spec/support/subdomain_helpers.rb
mtdevise-1.7.8 spec/support/subdomain_helpers.rb
mtdevise-1.7.5 spec/support/subdomain_helpers.rb
mtdevise-1.7.1 spec/support/subdomain_helpers.rb
mtdevise-1.7.0 spec/support/subdomain_helpers.rb
mtdevise-1.6.6 spec/support/subdomain_helpers.rb
mtdevise-1.6.5 spec/support/subdomain_helpers.rb
mtdevise-1.6.3 spec/support/subdomain_helpers.rb
mtdevise-1.6.0 spec/support/subdomain_helpers.rb
mtdevise-1.5.3 spec/support/subdomain_helpers.rb
mtdevise-1.5.2 spec/support/subdomain_helpers.rb
mtdevise-1.5.0 spec/support/subdomain_helpers.rb