webmock 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/.rspec-tm +2 -0
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile +2 -2
  4. data/README.md +1 -0
  5. data/Rakefile +3 -3
  6. data/lib/webmock/http_lib_adapters/httpclient_adapter.rb +11 -4
  7. data/lib/webmock/version.rb +1 -1
  8. data/spec/{curb_spec.rb → acceptance/curb/curb_spec.rb} +9 -9
  9. data/spec/{curb_spec_helper.rb → acceptance/curb/curb_spec_helper.rb} +0 -0
  10. data/spec/{em_http_request_spec.rb → acceptance/em_http_request/em_http_request_spec.rb} +13 -13
  11. data/spec/{em_http_request_spec_helper.rb → acceptance/em_http_request/em_http_request_spec_helper.rb} +0 -0
  12. data/spec/acceptance/httpclient/httpclient_spec.rb +67 -0
  13. data/spec/{httpclient_spec_helper.rb → acceptance/httpclient/httpclient_spec_helper.rb} +0 -0
  14. data/spec/{net_http_shared.rb → acceptance/net_http/net_http_shared.rb} +0 -0
  15. data/spec/{net_http_spec.rb → acceptance/net_http/net_http_spec.rb} +6 -6
  16. data/spec/{net_http_spec_helper.rb → acceptance/net_http/net_http_spec_helper.rb} +0 -0
  17. data/spec/{real_net_http_spec.rb → acceptance/net_http/real_net_http_spec.rb} +1 -1
  18. data/spec/{patron_spec.rb → acceptance/patron/patron_spec.rb} +12 -12
  19. data/spec/{patron_spec_helper.rb → acceptance/patron/patron_spec_helper.rb} +0 -0
  20. data/spec/acceptance/shared/allowing_and_disabling_net_connect.rb +142 -0
  21. data/spec/acceptance/shared/callbacks.rb +130 -0
  22. data/spec/acceptance/shared/enabling_and_disabling_webmock.rb +96 -0
  23. data/spec/acceptance/shared/precedence_of_stubs.rb +15 -0
  24. data/spec/acceptance/shared/request_expectations.rb +620 -0
  25. data/spec/acceptance/shared/returning_declared_responses.rb +377 -0
  26. data/spec/acceptance/shared/stubbing_requests.rb +314 -0
  27. data/spec/{typhoeus_hydra_spec.rb → acceptance/typhoeus/typhoeus_hydra_spec.rb} +5 -5
  28. data/spec/{typhoeus_hydra_spec_helper.rb → acceptance/typhoeus/typhoeus_hydra_spec_helper.rb} +0 -0
  29. data/spec/acceptance/webmock_shared.rb +38 -0
  30. data/spec/spec_helper.rb +4 -2
  31. data/spec/{example_curl_output.txt → support/example_curl_output.txt} +0 -0
  32. data/spec/{my_rack_app.rb → support/my_rack_app.rb} +0 -0
  33. data/spec/{network_connection.rb → support/network_connection.rb} +0 -0
  34. data/spec/{errors_spec.rb → unit/errors_spec.rb} +1 -1
  35. data/spec/{http_lib_adapters → unit/http_lib_adapters}/http_lib_adapter_registry_spec.rb +1 -1
  36. data/spec/{http_lib_adapters → unit/http_lib_adapters}/http_lib_adapter_spec.rb +1 -1
  37. data/spec/{rack_response_spec.rb → unit/rack_response_spec.rb} +1 -1
  38. data/spec/{request_execution_verifier_spec.rb → unit/request_execution_verifier_spec.rb} +1 -1
  39. data/spec/{request_pattern_spec.rb → unit/request_pattern_spec.rb} +1 -1
  40. data/spec/{request_registry_spec.rb → unit/request_registry_spec.rb} +1 -1
  41. data/spec/{request_signature_spec.rb → unit/request_signature_spec.rb} +1 -1
  42. data/spec/{request_stub_spec.rb → unit/request_stub_spec.rb} +1 -1
  43. data/spec/{response_spec.rb → unit/response_spec.rb} +4 -4
  44. data/spec/{stub_registry_spec.rb → unit/stub_registry_spec.rb} +1 -1
  45. data/spec/{stub_request_snippet_spec.rb → unit/stub_request_snippet_spec.rb} +1 -1
  46. data/spec/{util → unit/util}/hash_counter_spec.rb +1 -1
  47. data/spec/{util → unit/util}/hash_keys_stringifier_spec.rb +1 -1
  48. data/spec/{util → unit/util}/headers_spec.rb +1 -1
  49. data/spec/{util → unit/util}/json_spec.rb +1 -1
  50. data/spec/{util → unit/util}/uri_spec.rb +1 -1
  51. data/spec/{webmock_spec.rb → unit/webmock_spec.rb} +1 -1
  52. data/webmock.gemspec +1 -1
  53. metadata +111 -116
  54. data/spec/httpclient_spec.rb +0 -43
  55. data/spec/vendor/addressable/lib/addressable/uri.rb +0 -8
  56. data/spec/vendor/addressable/lib/uri.rb +0 -1
  57. data/spec/vendor/crack/lib/crack.rb +0 -1
  58. data/spec/vendor/right_http_connection-1.2.4/History.txt +0 -59
  59. data/spec/vendor/right_http_connection-1.2.4/Manifest.txt +0 -7
  60. data/spec/vendor/right_http_connection-1.2.4/README.txt +0 -54
  61. data/spec/vendor/right_http_connection-1.2.4/Rakefile +0 -103
  62. data/spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb +0 -160
  63. data/spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb +0 -435
  64. data/spec/vendor/right_http_connection-1.2.4/setup.rb +0 -1585
  65. data/spec/webmock_shared.rb +0 -1770
@@ -1,13 +1,13 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
- require 'webmock_shared'
1
+ require 'spec_helper'
2
+ require 'acceptance/webmock_shared'
3
3
 
4
4
  unless RUBY_PLATFORM =~ /java/
5
- require 'typhoeus_hydra_spec_helper'
5
+ require 'acceptance/typhoeus/typhoeus_hydra_spec_helper'
6
6
 
7
- describe "Webmock with Typhoeus::Hydra" do
7
+ describe "Typhoeus::Hydra" do
8
8
  include TyphoeusHydraSpecHelper
9
9
 
10
- it_should_behave_like "WebMock"
10
+ include_context "with WebMock"
11
11
 
12
12
  describe "Typhoeus::Hydra features" do
13
13
  before(:each) do
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+ require 'acceptance/shared/enabling_and_disabling_webmock'
3
+ require 'acceptance/shared/returning_declared_responses'
4
+ require 'acceptance/shared/callbacks'
5
+ require 'acceptance/shared/request_expectations'
6
+ require 'acceptance/shared/stubbing_requests'
7
+ require 'acceptance/shared/allowing_and_disabling_net_connect'
8
+ require 'acceptance/shared/precedence_of_stubs'
9
+
10
+ unless defined? SAMPLE_HEADERS
11
+ SAMPLE_HEADERS = { "Content-Length" => "8888", "Accept" => "application/json" }
12
+ ESCAPED_PARAMS = "x=ab%20c&z=%27Stop%21%27%20said%20Fred"
13
+ NOT_ESCAPED_PARAMS = "z='Stop!' said Fred&x=ab c"
14
+ end
15
+
16
+ shared_examples "with WebMock" do
17
+ describe "with WebMock" do
18
+ let(:webmock_server_url) {"http://#{WebMockServer.instance.host_with_port}/"}
19
+ before(:each) do
20
+ WebMock.disable_net_connect!
21
+ WebMock.reset!
22
+ end
23
+
24
+ include_context "allowing and disabling net connect"
25
+
26
+ include_context "stubbing requests"
27
+
28
+ include_context "declared responses"
29
+
30
+ include_context "precedence of stubs"
31
+
32
+ include_context "request expectations"
33
+
34
+ include_context "callbacks"
35
+
36
+ include_context "enabled and disabled webmock"
37
+ end
38
+ end
@@ -13,9 +13,11 @@ require 'rspec'
13
13
 
14
14
  require 'webmock/rspec'
15
15
 
16
- require 'network_connection'
16
+ require 'support/network_connection'
17
17
  require 'support/webmock_server'
18
- require 'my_rack_app'
18
+ require 'support/my_rack_app'
19
+
20
+ CURL_EXAMPLE_OUTPUT_PATH = File.expand_path(File.dirname(__FILE__)) + "/support/example_curl_output.txt" unless defined? CURL_EXAMPLE_OUTPUT_PATH
19
21
 
20
22
  RSpec.configure do |config|
21
23
  unless NetworkConnection.is_network_available?
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "errors" do
4
4
  describe WebMock::NetConnectNotAllowedError do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::HttpLibAdapterRegistry do
4
4
  describe "each_adapter" do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::HttpLibAdapter do
4
4
  describe "adapter_for" do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::RackResponse do
4
4
  before :each do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::RequestExecutionVerifier do
4
4
  before(:each) do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::RequestPattern do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::RequestRegistry do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::RequestSignature do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::RequestStub do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::ResponseFactory do
4
4
 
@@ -126,7 +126,7 @@ describe WebMock::Response do
126
126
 
127
127
  describe "when input is IO" do
128
128
  before(:each) do
129
- @file = File.new(File.expand_path(File.dirname(__FILE__)) + "/example_curl_output.txt")
129
+ @file = File.new(CURL_EXAMPLE_OUTPUT_PATH)
130
130
  @response = WebMock::Response.new(@file)
131
131
  end
132
132
 
@@ -157,7 +157,7 @@ describe WebMock::Response do
157
157
 
158
158
  describe "when input is String" do
159
159
  before(:each) do
160
- @input = File.new(File.expand_path(File.dirname(__FILE__)) + "/example_curl_output.txt").read
160
+ @input = File.new(CURL_EXAMPLE_OUTPUT_PATH).read
161
161
  @response = WebMock::Response.new(@input)
162
162
  end
163
163
 
@@ -241,7 +241,7 @@ describe WebMock::Response do
241
241
  describe "when raw response is evaluated" do
242
242
  before(:each) do
243
243
  @files = {
244
- "www.example.com" => File.new(File.expand_path(File.dirname(__FILE__)) + "/example_curl_output.txt")
244
+ "www.example.com" => File.new(CURL_EXAMPLE_OUTPUT_PATH)
245
245
  }
246
246
  @request_signature = WebMock::RequestSignature.new(:get, "www.example.com")
247
247
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::StubRegistry do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::StubRequestSnippet do
4
4
  describe "to_s" do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::Util::HashCounter do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::Util::HashKeysStringifier do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::Util::Headers do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe WebMock::Util::JSON do
4
4
  it "should parse json without parsing dates" do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
 
4
4
  URIS_WITHOUT_PATH_OR_PARAMS =
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "WebMock version" do
4
4
  it "should report version" do
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_development_dependency 'rspec', '>= 2.0.0'
21
21
  s.add_development_dependency 'httpclient', '>= 2.1.5.2'
22
- s.add_development_dependency 'patron', '>= 0.4.9'
22
+ s.add_development_dependency 'patron', '>= 0.4.15'
23
23
  s.add_development_dependency 'em-http-request', '~> 0.3.0'
24
24
  s.add_development_dependency 'curb', '>= 0.7.8'
25
25
  s.add_development_dependency 'typhoeus', '>= 0.2.4'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-27 00:00:00.000000000Z
12
+ date: 2011-09-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
16
- requirement: &2153330000 !ruby/object:Gem::Requirement
16
+ requirement: &2160890160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 2.2.5
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *2153330000
27
+ version_requirements: *2160890160
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: crack
30
- requirement: &2153329140 !ruby/object:Gem::Requirement
30
+ requirement: &2160889400 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 0.1.7
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *2153329140
38
+ version_requirements: *2160889400
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rspec
41
- requirement: &2153328680 !ruby/object:Gem::Requirement
41
+ requirement: &2160888940 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 2.0.0
47
47
  type: :development
48
48
  prerelease: false
49
- version_requirements: *2153328680
49
+ version_requirements: *2160888940
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: httpclient
52
- requirement: &2153328200 !ruby/object:Gem::Requirement
52
+ requirement: &2160888480 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,21 +57,21 @@ dependencies:
57
57
  version: 2.1.5.2
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *2153328200
60
+ version_requirements: *2160888480
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: patron
63
- requirement: &2153327700 !ruby/object:Gem::Requirement
63
+ requirement: &2160888020 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.4.9
68
+ version: 0.4.15
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *2153327700
71
+ version_requirements: *2160888020
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: em-http-request
74
- requirement: &2153327020 !ruby/object:Gem::Requirement
74
+ requirement: &2160887560 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ~>
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: 0.3.0
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *2153327020
82
+ version_requirements: *2160887560
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: curb
85
- requirement: &2153326340 !ruby/object:Gem::Requirement
85
+ requirement: &2160887100 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: 0.7.8
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *2153326340
93
+ version_requirements: *2160887100
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: typhoeus
96
- requirement: &2153317840 !ruby/object:Gem::Requirement
96
+ requirement: &2160878960 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ! '>='
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: 0.2.4
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *2153317840
104
+ version_requirements: *2160878960
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: minitest
107
- requirement: &2153317380 !ruby/object:Gem::Requirement
107
+ requirement: &2160878500 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ! '>='
@@ -112,10 +112,10 @@ dependencies:
112
112
  version: 2.2.2
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *2153317380
115
+ version_requirements: *2160878500
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: rdoc
118
- requirement: &2153316780 !ruby/object:Gem::Requirement
118
+ requirement: &2160878020 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ! '>'
@@ -123,7 +123,7 @@ dependencies:
123
123
  version: 3.5.0
124
124
  type: :development
125
125
  prerelease: false
126
- version_requirements: *2153316780
126
+ version_requirements: *2160878020
127
127
  description: WebMock allows stubbing HTTP requests and setting expectations on HTTP
128
128
  requests.
129
129
  email:
@@ -134,6 +134,7 @@ extra_rdoc_files: []
134
134
  files:
135
135
  - .gemtest
136
136
  - .gitignore
137
+ - .rspec-tm
137
138
  - .rvmrc
138
139
  - .travis.yml
139
140
  - CHANGELOG.md
@@ -187,55 +188,52 @@ files:
187
188
  - minitest/test_helper.rb
188
189
  - minitest/test_webmock.rb
189
190
  - minitest/webmock_spec.rb
190
- - spec/curb_spec.rb
191
- - spec/curb_spec_helper.rb
192
- - spec/em_http_request_spec.rb
193
- - spec/em_http_request_spec_helper.rb
194
- - spec/errors_spec.rb
195
- - spec/example_curl_output.txt
196
- - spec/http_lib_adapters/http_lib_adapter_registry_spec.rb
197
- - spec/http_lib_adapters/http_lib_adapter_spec.rb
198
- - spec/httpclient_spec.rb
199
- - spec/httpclient_spec_helper.rb
200
- - spec/my_rack_app.rb
201
- - spec/net_http_shared.rb
202
- - spec/net_http_spec.rb
203
- - spec/net_http_spec_helper.rb
204
- - spec/network_connection.rb
205
- - spec/patron_spec.rb
206
- - spec/patron_spec_helper.rb
191
+ - spec/acceptance/curb/curb_spec.rb
192
+ - spec/acceptance/curb/curb_spec_helper.rb
193
+ - spec/acceptance/em_http_request/em_http_request_spec.rb
194
+ - spec/acceptance/em_http_request/em_http_request_spec_helper.rb
195
+ - spec/acceptance/httpclient/httpclient_spec.rb
196
+ - spec/acceptance/httpclient/httpclient_spec_helper.rb
197
+ - spec/acceptance/net_http/net_http_shared.rb
198
+ - spec/acceptance/net_http/net_http_spec.rb
199
+ - spec/acceptance/net_http/net_http_spec_helper.rb
200
+ - spec/acceptance/net_http/real_net_http_spec.rb
201
+ - spec/acceptance/patron/patron_spec.rb
202
+ - spec/acceptance/patron/patron_spec_helper.rb
203
+ - spec/acceptance/shared/allowing_and_disabling_net_connect.rb
204
+ - spec/acceptance/shared/callbacks.rb
205
+ - spec/acceptance/shared/enabling_and_disabling_webmock.rb
206
+ - spec/acceptance/shared/precedence_of_stubs.rb
207
+ - spec/acceptance/shared/request_expectations.rb
208
+ - spec/acceptance/shared/returning_declared_responses.rb
209
+ - spec/acceptance/shared/stubbing_requests.rb
210
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
211
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
212
+ - spec/acceptance/webmock_shared.rb
207
213
  - spec/quality_spec.rb
208
- - spec/rack_response_spec.rb
209
- - spec/real_net_http_spec.rb
210
- - spec/request_execution_verifier_spec.rb
211
- - spec/request_pattern_spec.rb
212
- - spec/request_registry_spec.rb
213
- - spec/request_signature_spec.rb
214
- - spec/request_stub_spec.rb
215
- - spec/response_spec.rb
216
214
  - spec/spec_helper.rb
217
- - spec/stub_registry_spec.rb
218
- - spec/stub_request_snippet_spec.rb
215
+ - spec/support/example_curl_output.txt
216
+ - spec/support/my_rack_app.rb
217
+ - spec/support/network_connection.rb
219
218
  - spec/support/webmock_server.rb
220
- - spec/typhoeus_hydra_spec.rb
221
- - spec/typhoeus_hydra_spec_helper.rb
222
- - spec/util/hash_counter_spec.rb
223
- - spec/util/hash_keys_stringifier_spec.rb
224
- - spec/util/headers_spec.rb
225
- - spec/util/json_spec.rb
226
- - spec/util/uri_spec.rb
227
- - spec/vendor/addressable/lib/addressable/uri.rb
228
- - spec/vendor/addressable/lib/uri.rb
229
- - spec/vendor/crack/lib/crack.rb
230
- - spec/vendor/right_http_connection-1.2.4/History.txt
231
- - spec/vendor/right_http_connection-1.2.4/Manifest.txt
232
- - spec/vendor/right_http_connection-1.2.4/README.txt
233
- - spec/vendor/right_http_connection-1.2.4/Rakefile
234
- - spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb
235
- - spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb
236
- - spec/vendor/right_http_connection-1.2.4/setup.rb
237
- - spec/webmock_shared.rb
238
- - spec/webmock_spec.rb
219
+ - spec/unit/errors_spec.rb
220
+ - spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
221
+ - spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
222
+ - spec/unit/rack_response_spec.rb
223
+ - spec/unit/request_execution_verifier_spec.rb
224
+ - spec/unit/request_pattern_spec.rb
225
+ - spec/unit/request_registry_spec.rb
226
+ - spec/unit/request_signature_spec.rb
227
+ - spec/unit/request_stub_spec.rb
228
+ - spec/unit/response_spec.rb
229
+ - spec/unit/stub_registry_spec.rb
230
+ - spec/unit/stub_request_snippet_spec.rb
231
+ - spec/unit/util/hash_counter_spec.rb
232
+ - spec/unit/util/hash_keys_stringifier_spec.rb
233
+ - spec/unit/util/headers_spec.rb
234
+ - spec/unit/util/json_spec.rb
235
+ - spec/unit/util/uri_spec.rb
236
+ - spec/unit/webmock_spec.rb
239
237
  - test/http_request.rb
240
238
  - test/shared_test.rb
241
239
  - test/test_helper.rb
@@ -261,60 +259,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
259
  version: '0'
262
260
  requirements: []
263
261
  rubyforge_project: webmock
264
- rubygems_version: 1.8.6
262
+ rubygems_version: 1.8.10
265
263
  signing_key:
266
264
  specification_version: 3
267
265
  summary: Library for stubbing HTTP requests in Ruby.
268
266
  test_files:
269
- - spec/curb_spec.rb
270
- - spec/curb_spec_helper.rb
271
- - spec/em_http_request_spec.rb
272
- - spec/em_http_request_spec_helper.rb
273
- - spec/errors_spec.rb
274
- - spec/example_curl_output.txt
275
- - spec/http_lib_adapters/http_lib_adapter_registry_spec.rb
276
- - spec/http_lib_adapters/http_lib_adapter_spec.rb
277
- - spec/httpclient_spec.rb
278
- - spec/httpclient_spec_helper.rb
279
- - spec/my_rack_app.rb
280
- - spec/net_http_shared.rb
281
- - spec/net_http_spec.rb
282
- - spec/net_http_spec_helper.rb
283
- - spec/network_connection.rb
284
- - spec/patron_spec.rb
285
- - spec/patron_spec_helper.rb
267
+ - spec/acceptance/curb/curb_spec.rb
268
+ - spec/acceptance/curb/curb_spec_helper.rb
269
+ - spec/acceptance/em_http_request/em_http_request_spec.rb
270
+ - spec/acceptance/em_http_request/em_http_request_spec_helper.rb
271
+ - spec/acceptance/httpclient/httpclient_spec.rb
272
+ - spec/acceptance/httpclient/httpclient_spec_helper.rb
273
+ - spec/acceptance/net_http/net_http_shared.rb
274
+ - spec/acceptance/net_http/net_http_spec.rb
275
+ - spec/acceptance/net_http/net_http_spec_helper.rb
276
+ - spec/acceptance/net_http/real_net_http_spec.rb
277
+ - spec/acceptance/patron/patron_spec.rb
278
+ - spec/acceptance/patron/patron_spec_helper.rb
279
+ - spec/acceptance/shared/allowing_and_disabling_net_connect.rb
280
+ - spec/acceptance/shared/callbacks.rb
281
+ - spec/acceptance/shared/enabling_and_disabling_webmock.rb
282
+ - spec/acceptance/shared/precedence_of_stubs.rb
283
+ - spec/acceptance/shared/request_expectations.rb
284
+ - spec/acceptance/shared/returning_declared_responses.rb
285
+ - spec/acceptance/shared/stubbing_requests.rb
286
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
287
+ - spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
288
+ - spec/acceptance/webmock_shared.rb
286
289
  - spec/quality_spec.rb
287
- - spec/rack_response_spec.rb
288
- - spec/real_net_http_spec.rb
289
- - spec/request_execution_verifier_spec.rb
290
- - spec/request_pattern_spec.rb
291
- - spec/request_registry_spec.rb
292
- - spec/request_signature_spec.rb
293
- - spec/request_stub_spec.rb
294
- - spec/response_spec.rb
295
290
  - spec/spec_helper.rb
296
- - spec/stub_registry_spec.rb
297
- - spec/stub_request_snippet_spec.rb
291
+ - spec/support/example_curl_output.txt
292
+ - spec/support/my_rack_app.rb
293
+ - spec/support/network_connection.rb
298
294
  - spec/support/webmock_server.rb
299
- - spec/typhoeus_hydra_spec.rb
300
- - spec/typhoeus_hydra_spec_helper.rb
301
- - spec/util/hash_counter_spec.rb
302
- - spec/util/hash_keys_stringifier_spec.rb
303
- - spec/util/headers_spec.rb
304
- - spec/util/json_spec.rb
305
- - spec/util/uri_spec.rb
306
- - spec/vendor/addressable/lib/addressable/uri.rb
307
- - spec/vendor/addressable/lib/uri.rb
308
- - spec/vendor/crack/lib/crack.rb
309
- - spec/vendor/right_http_connection-1.2.4/History.txt
310
- - spec/vendor/right_http_connection-1.2.4/Manifest.txt
311
- - spec/vendor/right_http_connection-1.2.4/README.txt
312
- - spec/vendor/right_http_connection-1.2.4/Rakefile
313
- - spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb
314
- - spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb
315
- - spec/vendor/right_http_connection-1.2.4/setup.rb
316
- - spec/webmock_shared.rb
317
- - spec/webmock_spec.rb
295
+ - spec/unit/errors_spec.rb
296
+ - spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
297
+ - spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
298
+ - spec/unit/rack_response_spec.rb
299
+ - spec/unit/request_execution_verifier_spec.rb
300
+ - spec/unit/request_pattern_spec.rb
301
+ - spec/unit/request_registry_spec.rb
302
+ - spec/unit/request_signature_spec.rb
303
+ - spec/unit/request_stub_spec.rb
304
+ - spec/unit/response_spec.rb
305
+ - spec/unit/stub_registry_spec.rb
306
+ - spec/unit/stub_request_snippet_spec.rb
307
+ - spec/unit/util/hash_counter_spec.rb
308
+ - spec/unit/util/hash_keys_stringifier_spec.rb
309
+ - spec/unit/util/headers_spec.rb
310
+ - spec/unit/util/json_spec.rb
311
+ - spec/unit/util/uri_spec.rb
312
+ - spec/unit/webmock_spec.rb
318
313
  - test/http_request.rb
319
314
  - test/shared_test.rb
320
315
  - test/test_helper.rb