Sha256: e419bef392eae3aa705fd1fbb99a81ae49561d24a655d86e47ef7e0fbfd006db

Contents?: true

Size: 644 Bytes

Versions: 82

Compression:

Stored size: 644 Bytes

Contents

##############################################################################
#                              WebMock Plugin
##############################################################################

begin
  require 'webmock/rspec'

  RSpec.configure do |config|
    config.around(:each, :web_mock => lambda { |v| !!v }) do |example|
      options = example.metadata[:web_mock]
      options = case options
                when TrueClass
                  { :allow_localhost => true }
                end

      WebMock.disable_net_connect!(options)

      example.run

      WebMock.allow_net_connect!
    end
  end

rescue LoadError
end

Version data entries

82 entries across 82 versions & 2 rubygems

Version Path
rspectacular-0.70.8 lib/rspectacular/plugins/webmock.rb
rspeckled-0.0.16 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.15 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.14 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.13 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.12 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.11 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.10 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.9 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.8 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.7 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.6 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.5 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.4 lib/rspeckled/plugins/webmock.rb
rspectacular-0.70.7 lib/rspectacular/plugins/webmock.rb
rspeckled-0.0.3 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.2 lib/rspeckled/plugins/webmock.rb
rspeckled-0.0.1 lib/rspeckled/plugins/webmock.rb
rspectacular-0.70.6 lib/rspectacular/plugins/webmock.rb
rspectacular-0.62.0 lib/rspectacular/plugins/webmock.rb