Commit 051933e

mo khan <mo@mokhan.ca>
2016-05-07 13:58:30
add domains to poltergeist blacklist.
1 parent 0e645c4
Changed files (2)
spec/features/gyms_spec.rb
@@ -32,7 +32,7 @@ feature "Gyms", type: :feature do
     end
 
     describe "search" do
-      let!(:other_calgary_gym) do 
+      let!(:other_calgary_gym) do
         create(:gym, name: "world health", location: create(:calgary))
       end
 
spec/rails_helper.rb
@@ -48,7 +48,14 @@ RSpec.configure do |config|
 
   config.before(:each, js: true) do
     DatabaseCleaner.strategy = :truncation
-    page.driver.browser.url_blacklist = ["http://fonts.googleapis.com"]
+    page.driver.browser.url_blacklist = [
+      "http://apis.google.com",
+      "http://fonts.googleapis.com",
+      "http://www.google.com",
+      "https://accounts.google.com",
+      "https://maps.google.com",
+      "https://secure.gravatar.com",
+    ]
   end
 
   config.before(:each) do