webmock 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/CHANGELOG.md +17 -0
  2. data/README.md +13 -0
  3. data/VERSION +1 -1
  4. data/lib/webmock/errors.rb +5 -1
  5. data/lib/webmock/http_lib_adapters/httpclient.rb +10 -8
  6. data/lib/webmock/http_lib_adapters/net_http.rb +56 -64
  7. data/lib/webmock/http_lib_adapters/patron.rb +2 -3
  8. data/lib/webmock/util/headers.rb +18 -3
  9. data/lib/webmock/webmock.rb +12 -5
  10. data/spec/example_curl_output.txt +2 -0
  11. data/spec/httpclient_spec.rb +8 -0
  12. data/spec/httpclient_spec_helper.rb +9 -1
  13. data/spec/net_http_spec_helper.rb +10 -1
  14. data/spec/other_net_http_libs_spec.rb +0 -10
  15. data/spec/patron_spec_helper.rb +8 -2
  16. data/spec/response_spec.rb +4 -2
  17. data/spec/util/headers_spec.rb +17 -0
  18. data/spec/webmock_spec.rb +103 -15
  19. data/test/test_webmock.rb +1 -1
  20. data/webmock.gemspec +2 -23
  21. metadata +2 -23
  22. data/spec/vendor/samuel-0.2.1/.document +0 -5
  23. data/spec/vendor/samuel-0.2.1/.gitignore +0 -5
  24. data/spec/vendor/samuel-0.2.1/LICENSE +0 -20
  25. data/spec/vendor/samuel-0.2.1/README.rdoc +0 -70
  26. data/spec/vendor/samuel-0.2.1/Rakefile +0 -62
  27. data/spec/vendor/samuel-0.2.1/VERSION +0 -1
  28. data/spec/vendor/samuel-0.2.1/lib/samuel.rb +0 -52
  29. data/spec/vendor/samuel-0.2.1/lib/samuel/net_http.rb +0 -10
  30. data/spec/vendor/samuel-0.2.1/lib/samuel/request.rb +0 -96
  31. data/spec/vendor/samuel-0.2.1/samuel.gemspec +0 -69
  32. data/spec/vendor/samuel-0.2.1/test/request_test.rb +0 -193
  33. data/spec/vendor/samuel-0.2.1/test/samuel_test.rb +0 -42
  34. data/spec/vendor/samuel-0.2.1/test/test_helper.rb +0 -66
  35. data/spec/vendor/samuel-0.2.1/test/thread_test.rb +0 -32
@@ -12,10 +12,16 @@ module PatronSpecHelper
12
12
  response = sess.request(method, "#{uri.path}#{uri.query ? '?' : ''}#{uri.query}", options[:headers] || {}, {
13
13
  :data => options[:body]
14
14
  })
15
-
15
+ headers = {}
16
+ if response.headers
17
+ response.headers.each do |k,v|
18
+ v = v.join(", ") if v.is_a?(Array)
19
+ headers[k] = v
20
+ end
21
+ end
16
22
  OpenStruct.new({
17
23
  :body => response.body,
18
- :headers => WebMock::Util::Headers.normalize_headers(response.headers),
24
+ :headers => WebMock::Util::Headers.normalize_headers(headers),
19
25
  :status => response.status.to_s,
20
26
  :message => response.status_line
21
27
  })
@@ -126,7 +126,8 @@ describe Response do
126
126
  "Date"=>"Sat, 23 Jan 2010 01:01:05 GMT",
127
127
  "Content-Type"=>"text/html; charset=UTF-8",
128
128
  "Content-Length"=>"438",
129
- "Connection"=>"Keep-Alive"
129
+ "Connection"=>"Keep-Alive",
130
+ "Accept"=>"image/jpeg, image/png"
130
131
  }
131
132
  end
132
133
 
@@ -155,7 +156,8 @@ describe Response do
155
156
  "Date"=>"Sat, 23 Jan 2010 01:01:05 GMT",
156
157
  "Content-Type"=>"text/html; charset=UTF-8",
157
158
  "Content-Length"=>"438",
158
- "Connection"=>"Keep-Alive"
159
+ "Connection"=>"Keep-Alive",
160
+ "Accept"=>"image/jpeg, image/png"
159
161
  }
160
162
  end
161
163
 
@@ -8,4 +8,21 @@ describe WebMock::Util::Headers do
8
8
  userinfo.should == "username:secret"
9
9
  end
10
10
 
11
+ describe "sorted_headers_string" do
12
+
13
+ it "should return nice string for hash with string values" do
14
+ Util::Headers.sorted_headers_string({"a" => "b"}).should == "{'A'=>'b'}"
15
+ end
16
+
17
+ it "should return nice string for hash with array values" do
18
+ Util::Headers.sorted_headers_string({"a" => ["b", "c"]}).should == "{'A'=>['b', 'c']}"
19
+ end
20
+
21
+ it "should return nice string for hash with array values and string values" do
22
+ Util::Headers.sorted_headers_string({"a" => ["b", "c"], "d" => "e"}).should == "{'A'=>['b', 'c'], 'D'=>'e'}"
23
+ end
24
+
25
+
26
+ end
27
+
11
28
  end
data/spec/webmock_spec.rb CHANGED
@@ -8,6 +8,14 @@ end
8
8
 
9
9
  class MyException < StandardError; end;
10
10
 
11
+ describe "WebMock version" do
12
+
13
+ it "should report version" do
14
+ WebMock.version.should == open(File.join(File.dirname(__FILE__), "..", "VERSION")).read.strip
15
+ end
16
+
17
+ end
18
+
11
19
  describe "WebMock", :shared => true do
12
20
  before(:each) do
13
21
  WebMock.disable_net_connect!
@@ -56,7 +64,7 @@ describe "WebMock", :shared => true do
56
64
  it "should raise exception if request was not stubbed" do
57
65
  lambda {
58
66
  http_request(:get, "http://www.example.com/")
59
- }.should fail_with(client_specific_request_string("Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/"))
67
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string("Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/"))
60
68
  end
61
69
  end
62
70
 
@@ -73,7 +81,7 @@ describe "WebMock", :shared => true do
73
81
  it "should raise exception if request was not stubbed" do
74
82
  lambda {
75
83
  http_request(:get, "http://www.example.com/")
76
- }.should fail_with(client_specific_request_string("Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/"))
84
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string("Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/"))
77
85
  end
78
86
 
79
87
  it "should allow a real request localhost" do
@@ -117,7 +125,7 @@ describe "WebMock", :shared => true do
117
125
  http_request(:get, "http://www.example.com/").status.should == "200"
118
126
  lambda {
119
127
  http_request(:delete, "http://www.example.com/")
120
- }.should fail_with(client_specific_request_string(
128
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
121
129
  "Real HTTP connections are disabled. Unregistered request: DELETE http://www.example.com/")
122
130
  )
123
131
  end
@@ -144,7 +152,7 @@ describe "WebMock", :shared => true do
144
152
  stub_http_request(:post, "www.example.com").with(:body => "abc")
145
153
  lambda {
146
154
  http_request(:post, "http://www.example.com/", :body => "def")
147
- }.should fail_with(client_specific_request_string(
155
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
148
156
  "Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'def'"))
149
157
  end
150
158
 
@@ -161,7 +169,7 @@ describe "WebMock", :shared => true do
161
169
  stub_http_request(:post, "www.example.com").with(:body => /^abc/)
162
170
  lambda {
163
171
  http_request(:post, "http://www.example.com/", :body => "xabc")
164
- }.should fail_with(client_specific_request_string(
172
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
165
173
  "Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'xabc'"))
166
174
  end
167
175
 
@@ -177,6 +185,42 @@ describe "WebMock", :shared => true do
177
185
  :get, "http://www.example.com/",
178
186
  :headers => SAMPLE_HEADERS).status.should == "200"
179
187
  end
188
+
189
+ it "should match requests if headers are the same and declared as array" do
190
+ stub_http_request(:get, "www.example.com").with(:headers => {"a" => ["b"]} )
191
+ http_request(
192
+ :get, "http://www.example.com/",
193
+ :headers => {"a" => "b"}).status.should == "200"
194
+ end
195
+
196
+ describe "when multiple headers with the same key are used" do
197
+
198
+ it "should match requests if headers are the same" do
199
+ stub_http_request(:get, "www.example.com").with(:headers => {"a" => ["b", "c"]} )
200
+ http_request(
201
+ :get, "http://www.example.com/",
202
+ :headers => {"a" => ["b", "c"]}).status.should == "200"
203
+ end
204
+
205
+ it "should match requests if headers are the same but in different order" do
206
+ stub_http_request(:get, "www.example.com").with(:headers => {"a" => ["b", "c"]} )
207
+ http_request(
208
+ :get, "http://www.example.com/",
209
+ :headers => {"a" => ["c", "b"]}).status.should == "200"
210
+ end
211
+
212
+ it "should not match requests if headers are different" do
213
+ stub_http_request(:get, "www.example.com").with(:headers => {"a" => ["b", "c"]})
214
+
215
+ lambda {
216
+ http_request(
217
+ :get, "http://www.example.com/",
218
+ :headers => {"a" => ["b", "d"]})
219
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
220
+ %q(Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/ with headers {'A'=>['b', 'd']})))
221
+ end
222
+
223
+ end
180
224
 
181
225
  it "should match requests if request headers are not stubbed" do
182
226
  stub_http_request(:get, "www.example.com")
@@ -192,7 +236,7 @@ describe "WebMock", :shared => true do
192
236
  http_request(
193
237
  :get, "http://www.example.com/",
194
238
  :headers => { 'Content-Length' => '9999'})
195
- }.should fail_with(client_specific_request_string(
239
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
196
240
  %q(Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/ with headers {'Content-Length'=>'9999'})))
197
241
  end
198
242
 
@@ -203,7 +247,7 @@ describe "WebMock", :shared => true do
203
247
  http_request(
204
248
  :get, "http://www.example.com/",
205
249
  :headers => { 'Accept' => 'application/xml'})
206
- }.should fail_with(client_specific_request_string(
250
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
207
251
  %q(Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/ with headers {'Accept'=>'application/xml'})))
208
252
  end
209
253
 
@@ -223,7 +267,7 @@ describe "WebMock", :shared => true do
223
267
  http_request(
224
268
  :get, "http://www.example.com/",
225
269
  :headers => { 'user-agent' => 'xMyAppName' })
226
- }.should fail_with(client_specific_request_string(
270
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
227
271
  %q(Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/ with headers {'User-Agent'=>'xMyAppName'})))
228
272
  end
229
273
 
@@ -241,7 +285,7 @@ describe "WebMock", :shared => true do
241
285
  stub_http_request(:get, "user:pass@www.example.com")
242
286
  lambda {
243
287
  http_request(:get, "http://user:pazz@www.example.com/").status.should == "200"
244
- }.should fail_with(client_specific_request_string(
288
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
245
289
  %q(Real HTTP connections are disabled. Unregistered request: GET http://user:pazz@www.example.com/)))
246
290
  end
247
291
 
@@ -249,7 +293,7 @@ describe "WebMock", :shared => true do
249
293
  stub_http_request(:get, "user:pass@www.example.com")
250
294
  lambda {
251
295
  http_request(:get, "http://www.example.com/").status.should == "200"
252
- }.should fail_with(client_specific_request_string(
296
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
253
297
  %q(Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/)))
254
298
  end
255
299
 
@@ -257,7 +301,7 @@ describe "WebMock", :shared => true do
257
301
  stub_http_request(:get, "www.example.com")
258
302
  lambda {
259
303
  http_request(:get, "http://user:pazz@www.example.com/").status.should == "200"
260
- }.should fail_with(client_specific_request_string(
304
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
261
305
  %q(Real HTTP connections are disabled. Unregistered request: GET http://user:pazz@www.example.com/)))
262
306
  end
263
307
 
@@ -274,7 +318,7 @@ describe "WebMock", :shared => true do
274
318
  stub_http_request(:get, "www.example.com").with { |request| false }
275
319
  lambda {
276
320
  http_request(:get, "http://www.example.com/")
277
- }.should fail_with(client_specific_request_string(
321
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
278
322
  "Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/"))
279
323
  end
280
324
 
@@ -285,7 +329,7 @@ describe "WebMock", :shared => true do
285
329
  :body => "wadus").status.should == "200"
286
330
  lambda {
287
331
  http_request(:post, "http://www.example.com/", :body => "jander")
288
- }.should fail_with(client_specific_request_string(
332
+ }.should raise_error(WebMock::NetConnectNotAllowedError, client_specific_request_string(
289
333
  "Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'jander'"))
290
334
  end
291
335
 
@@ -344,6 +388,12 @@ describe "WebMock", :shared => true do
344
388
  response = http_request(:get, "http://www.example.com/")
345
389
  response.headers["Content-Length"].should == "8888"
346
390
  end
391
+
392
+ it "should return declared headers when there are multiple headers with the same key" do
393
+ stub_http_request(:get, "www.example.com").to_return(:headers => {"a" => ["b", "c"]})
394
+ response = http_request(:get, "http://www.example.com/")
395
+ response.headers["A"].should == "b, c"
396
+ end
347
397
 
348
398
  it "should return declared status code" do
349
399
  stub_http_request(:get, "www.example.com").to_return(:status => 500)
@@ -446,7 +496,8 @@ describe "WebMock", :shared => true do
446
496
  "Date"=>"Sat, 23 Jan 2010 01:01:05 GMT",
447
497
  "Content-Type"=>"text/html; charset=UTF-8",
448
498
  "Content-Length"=>"438",
449
- "Connection"=>"Keep-Alive"
499
+ "Connection"=>"Keep-Alive",
500
+ "Accept"=>"image/jpeg, image/png"
450
501
  }
451
502
  end
452
503
 
@@ -481,7 +532,8 @@ describe "WebMock", :shared => true do
481
532
  "Date"=>"Sat, 23 Jan 2010 01:01:05 GMT",
482
533
  "Content-Type"=>"text/html; charset=UTF-8",
483
534
  "Content-Length"=>"438",
484
- "Connection"=>"Keep-Alive"
535
+ "Connection"=>"Keep-Alive",
536
+ "Accept"=>"image/jpeg, image/png"
485
537
  }
486
538
  end
487
539
 
@@ -806,6 +858,42 @@ describe "WebMock", :shared => true do
806
858
  request(:get, "www.example.com").
807
859
  with(:headers => SAMPLE_HEADERS).should have_been_made
808
860
  }.should_not raise_error
861
+ end
862
+
863
+ it "should succeed if request was executed with the same headers with value declared as array" do
864
+ lambda {
865
+ http_request(:get, "http://www.example.com/", :headers => {"a" => "b"})
866
+ request(:get, "www.example.com").
867
+ with(:headers => {"a" => ["b"]}).should have_been_made
868
+ }.should_not raise_error
869
+ end
870
+
871
+ describe "when multiple headers with the same key are passed" do
872
+
873
+ it "should succeed if request was executed with the same headers" do
874
+ lambda {
875
+ http_request(:get, "http://www.example.com/", :headers => {"a" => ["b", "c"]})
876
+ request(:get, "www.example.com").
877
+ with(:headers => {"a" => ["b", "c"]}).should have_been_made
878
+ }.should_not raise_error
879
+ end
880
+
881
+ it "should succeed if request was executed with the same headers but different order" do
882
+ lambda {
883
+ http_request(:get, "http://www.example.com/", :headers => {"a" => ["b", "c"]})
884
+ request(:get, "www.example.com").
885
+ with(:headers => {"a" => ["c", "b"]}).should have_been_made
886
+ }.should_not raise_error
887
+ end
888
+
889
+ it "should fail if request was executed with different headers" do
890
+ lambda {
891
+ http_request(:get, "http://www.example.com/", :headers => {"a" => ["b", "c"]})
892
+ request(:get, "www.example.com").
893
+ with(:headers => {"a" => ["b", "d"]}).should have_been_made
894
+ }.should fail_with("The request GET http://www.example.com/ with headers {'A'=>['b', 'd']} was expected to execute 1 time but it executed 0 times")
895
+ end
896
+
809
897
  end
810
898
 
811
899
  it "should fail if request was executed with different headers" do
data/test/test_webmock.rb CHANGED
@@ -34,7 +34,7 @@ class TestWebMock < Test::Unit::TestCase
34
34
 
35
35
  def test_error_on_non_stubbed_request
36
36
  default_ruby_headers = (RUBY_VERSION >= "1.9.1") ? "{'Accept'=>'*/*', 'User-Agent'=>'Ruby'}" : "{'Accept'=>'*/*'}"
37
- assert_fail("Real HTTP connections are disabled. Unregistered request: GET http://www.example.net/ with headers #{default_ruby_headers}") do
37
+ assert_raise(WebMock::NetConnectNotAllowedError, "Real HTTP connections are disabled. Unregistered request: GET http://www.example.net/ with headers #{default_ruby_headers}") do
38
38
  http_request(:get, "http://www.example.net/")
39
39
  end
40
40
  end
data/webmock.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{webmock}
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bartosz Blimke"]
12
- s.date = %q{2010-04-12}
12
+ s.date = %q{2010-04-28}
13
13
  s.description = %q{WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.}
14
14
  s.email = %q{bartosz.blimke@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -75,20 +75,6 @@ Gem::Specification.new do |s|
75
75
  "spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb",
76
76
  "spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb",
77
77
  "spec/vendor/right_http_connection-1.2.4/setup.rb",
78
- "spec/vendor/samuel-0.2.1/.document",
79
- "spec/vendor/samuel-0.2.1/.gitignore",
80
- "spec/vendor/samuel-0.2.1/LICENSE",
81
- "spec/vendor/samuel-0.2.1/README.rdoc",
82
- "spec/vendor/samuel-0.2.1/Rakefile",
83
- "spec/vendor/samuel-0.2.1/VERSION",
84
- "spec/vendor/samuel-0.2.1/lib/samuel.rb",
85
- "spec/vendor/samuel-0.2.1/lib/samuel/net_http.rb",
86
- "spec/vendor/samuel-0.2.1/lib/samuel/request.rb",
87
- "spec/vendor/samuel-0.2.1/samuel.gemspec",
88
- "spec/vendor/samuel-0.2.1/test/request_test.rb",
89
- "spec/vendor/samuel-0.2.1/test/samuel_test.rb",
90
- "spec/vendor/samuel-0.2.1/test/test_helper.rb",
91
- "spec/vendor/samuel-0.2.1/test/thread_test.rb",
92
78
  "spec/webmock_spec.rb",
93
79
  "test/test_helper.rb",
94
80
  "test/test_webmock.rb",
@@ -122,13 +108,6 @@ Gem::Specification.new do |s|
122
108
  "spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb",
123
109
  "spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb",
124
110
  "spec/vendor/right_http_connection-1.2.4/setup.rb",
125
- "spec/vendor/samuel-0.2.1/lib/samuel/net_http.rb",
126
- "spec/vendor/samuel-0.2.1/lib/samuel/request.rb",
127
- "spec/vendor/samuel-0.2.1/lib/samuel.rb",
128
- "spec/vendor/samuel-0.2.1/test/request_test.rb",
129
- "spec/vendor/samuel-0.2.1/test/samuel_test.rb",
130
- "spec/vendor/samuel-0.2.1/test/test_helper.rb",
131
- "spec/vendor/samuel-0.2.1/test/thread_test.rb",
132
111
  "spec/webmock_spec.rb",
133
112
  "test/test_helper.rb",
134
113
  "test/test_webmock.rb"
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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Blimke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-04-12 00:00:00 +01:00
12
+ date: 2010-04-28 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -120,20 +120,6 @@ files:
120
120
  - spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb
121
121
  - spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb
122
122
  - spec/vendor/right_http_connection-1.2.4/setup.rb
123
- - spec/vendor/samuel-0.2.1/.document
124
- - spec/vendor/samuel-0.2.1/.gitignore
125
- - spec/vendor/samuel-0.2.1/LICENSE
126
- - spec/vendor/samuel-0.2.1/README.rdoc
127
- - spec/vendor/samuel-0.2.1/Rakefile
128
- - spec/vendor/samuel-0.2.1/VERSION
129
- - spec/vendor/samuel-0.2.1/lib/samuel.rb
130
- - spec/vendor/samuel-0.2.1/lib/samuel/net_http.rb
131
- - spec/vendor/samuel-0.2.1/lib/samuel/request.rb
132
- - spec/vendor/samuel-0.2.1/samuel.gemspec
133
- - spec/vendor/samuel-0.2.1/test/request_test.rb
134
- - spec/vendor/samuel-0.2.1/test/samuel_test.rb
135
- - spec/vendor/samuel-0.2.1/test/test_helper.rb
136
- - spec/vendor/samuel-0.2.1/test/thread_test.rb
137
123
  - spec/webmock_spec.rb
138
124
  - test/test_helper.rb
139
125
  - test/test_webmock.rb
@@ -189,13 +175,6 @@ test_files:
189
175
  - spec/vendor/right_http_connection-1.2.4/lib/net_fix.rb
190
176
  - spec/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb
191
177
  - spec/vendor/right_http_connection-1.2.4/setup.rb
192
- - spec/vendor/samuel-0.2.1/lib/samuel/net_http.rb
193
- - spec/vendor/samuel-0.2.1/lib/samuel/request.rb
194
- - spec/vendor/samuel-0.2.1/lib/samuel.rb
195
- - spec/vendor/samuel-0.2.1/test/request_test.rb
196
- - spec/vendor/samuel-0.2.1/test/samuel_test.rb
197
- - spec/vendor/samuel-0.2.1/test/test_helper.rb
198
- - spec/vendor/samuel-0.2.1/test/thread_test.rb
199
178
  - spec/webmock_spec.rb
200
179
  - test/test_helper.rb
201
180
  - test/test_webmock.rb
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- .yardoc
3
- /coverage
4
- /doc
5
- /pkg
@@ -1,20 +0,0 @@
1
- Copyright 2009 Chris Kampmeier
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.