spec/spec_helper.rb in solidus_frontend-1.1.4 vs spec/spec_helper.rb in solidus_frontend-1.2.0.beta1
- old
+ new
@@ -88,9 +88,10 @@
config.before(:each) do
Rails.cache.clear
reset_spree_preferences
WebMock.disable!
if RSpec.current_example.metadata[:js]
+ page.driver.browser.url_blacklist = ['http://fonts.googleapis.com']
DatabaseCleaner.strategy = :truncation
else
DatabaseCleaner.strategy = :transaction
end
DatabaseCleaner.start