From c5bb22df9d8b541b4251e1ae5b094fff597479ad Mon Sep 17 00:00:00 2001 From: "James A. Rosen" Date: Wed, 11 Aug 2010 08:50:20 -0700 Subject: [PATCH] added 'WebMock.disable_net_connect' to all spec_helpers --- oa-basic/spec/spec_helper.rb | 2 ++ oa-core/spec/spec_helper.rb | 2 ++ oa-enterprise/spec/spec_helper.rb | 2 ++ oa-oauth/spec/spec_helper.rb | 2 ++ oa-openid/spec/spec_helper.rb | 2 ++ 5 files changed, 10 insertions(+) diff --git a/oa-basic/spec/spec_helper.rb b/oa-basic/spec/spec_helper.rb index 8f7c63f..e1a3e26 100644 --- a/oa-basic/spec/spec_helper.rb +++ b/oa-basic/spec/spec_helper.rb @@ -8,3 +8,5 @@ include Rack::Test::Methods include WebMock require 'omniauth/basic' + +WebMock.disable_net_connect! diff --git a/oa-core/spec/spec_helper.rb b/oa-core/spec/spec_helper.rb index e7087c6..84fcb0a 100644 --- a/oa-core/spec/spec_helper.rb +++ b/oa-core/spec/spec_helper.rb @@ -11,3 +11,5 @@ Spec::Runner.configure do |config| config.include Rack::Test::Methods config.extend OmniAuth::Test::StrategyMacros, :type => :strategy end + +WebMock.disable_net_connect! diff --git a/oa-enterprise/spec/spec_helper.rb b/oa-enterprise/spec/spec_helper.rb index 65eca1f..49aea21 100644 --- a/oa-enterprise/spec/spec_helper.rb +++ b/oa-enterprise/spec/spec_helper.rb @@ -14,3 +14,5 @@ Spec::Runner.configure do |config| config.include Rack::Test::Methods config.extend OmniAuth::Test::StrategyMacros, :type => :strategy end + +WebMock.disable_net_connect! diff --git a/oa-oauth/spec/spec_helper.rb b/oa-oauth/spec/spec_helper.rb index c7f8616..867d172 100644 --- a/oa-oauth/spec/spec_helper.rb +++ b/oa-oauth/spec/spec_helper.rb @@ -14,3 +14,5 @@ Spec::Runner.configure do |config| config.include Rack::Test::Methods config.extend OmniAuth::Test::StrategyMacros, :type => :strategy end + +WebMock.disable_net_connect! diff --git a/oa-openid/spec/spec_helper.rb b/oa-openid/spec/spec_helper.rb index 5bc3164..8f4e1be 100644 --- a/oa-openid/spec/spec_helper.rb +++ b/oa-openid/spec/spec_helper.rb @@ -14,3 +14,5 @@ Spec::Runner.configure do |config| config.include Rack::Test::Methods config.extend OmniAuth::Test::StrategyMacros, :type => :strategy end + +WebMock.disable_net_connect!