File: real_net_http_spec.rb

package info (click to toggle)
ruby-webmock 3.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: ruby: 12,905; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'rubygems'
require 'rspec'
require 'net/http'
require 'net/https'
require 'stringio'
require 'acceptance/net_http/net_http_shared'
require 'support/webmock_server'

describe "Real Net:HTTP without webmock", without_webmock: true do
  before(:all) do
    raise "WebMock has no access here!!!" if defined?(WebMock::NetHTTPUtility)
    WebMockServer.instance.start
  end

  after(:all) do
    WebMockServer.instance.stop
  end

  it_should_behave_like "Net::HTTP"
end