Commit a761933cb9804c71597b33c3c51229678ef2cbe2

Authored by Nathan Broadbent
1 parent 94fc4515
Exists in master and in 1 other branch production

Put Webmock config in config.after(:all) block

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
spec/spec_helper.rb
... ... @@ -37,8 +37,10 @@ RSpec.configure do |config|
37 37 config.before(:each, :type => :helper) do |config|
38 38 init_haml_helpers
39 39 end
  40 +
  41 + config.after(:all) do
  42 + WebMock.disable_net_connect! :allow => /coveralls\.io/
  43 + end
40 44 end
41 45  
42 46 OmniAuth.config.test_mode = true
43   -
44   -WebMock.disable_net_connect! :allow => /coveralls\.io/
... ...