lib/mtwarden/testing_support/subdomain_helpers.rb in mtwarden-6.0.0 vs lib/mtwarden/testing_support/subdomain_helpers.rb in mtwarden-6.0.1
- old
+ new
@@ -1,16 +1,16 @@
-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
+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