Commit a761933cb9804c71597b33c3c51229678ef2cbe2
1 parent
94fc4515
Exists in
master
and in
1 other branch
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,8 +37,10 @@ RSpec.configure do |config| | ||
| 37 | config.before(:each, :type => :helper) do |config| | 37 | config.before(:each, :type => :helper) do |config| |
| 38 | init_haml_helpers | 38 | init_haml_helpers |
| 39 | end | 39 | end |
| 40 | + | ||
| 41 | + config.after(:all) do | ||
| 42 | + WebMock.disable_net_connect! :allow => /coveralls\.io/ | ||
| 43 | + end | ||
| 40 | end | 44 | end |
| 41 | 45 | ||
| 42 | OmniAuth.config.test_mode = true | 46 | OmniAuth.config.test_mode = true |
| 43 | - | ||
| 44 | -WebMock.disable_net_connect! :allow => /coveralls\.io/ |