lib/cadenero/testing_support/subdomain_helpers.rb in cadenero-0.0.2.b4 vs lib/cadenero/testing_support/subdomain_helpers.rb in cadenero-0.0.2.b5
- old
+ new
@@ -4,10 +4,10 @@
# RSpec Helper for subdomains
module SubdomainHelpers
# To be use for RSpec features for defining and account with a subdomain visible for Capybara
def within_account_subdomain
let(:subdomain_url) { "http://#{account.subdomain}.example.com" }
- before { Capybara.default_host = subdomain_url }
+ before { Capybara.default_host = subdomain_url }
after { Capybara.default_host = "http://example.com" }
yield
end
end
end
\ No newline at end of file