vcr 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/.travis.yml +2 -0
- data/CHANGELOG.md +31 -0
- data/Gemfile +1 -2
- data/Gemfile.lock +63 -46
- data/README.md +5 -2
- data/features/cassettes/allow_unused_http_interactions.feature +1 -1
- data/features/cassettes/automatic_re_recording.feature +1 -1
- data/features/cassettes/decompress.feature +3 -3
- data/features/cassettes/dynamic_erb.feature +2 -2
- data/features/cassettes/exclusive.feature +1 -1
- data/features/cassettes/naming.feature +1 -1
- data/features/cassettes/no_cassette.feature +6 -3
- data/features/cassettes/persistence.feature +1 -1
- data/features/cassettes/update_content_length_header.feature +1 -1
- data/features/configuration/allow_http_connections_when_no_cassette.feature +1 -1
- data/features/configuration/cassette_library_dir.feature +1 -1
- data/features/configuration/debug_logging.feature +5 -5
- data/features/configuration/filter_sensitive_data.feature +2 -2
- data/features/configuration/hook_into.feature +4 -7
- data/features/getting_started.md +2 -2
- data/features/hooks/before_playback.feature +5 -5
- data/features/hooks/before_record.feature +5 -5
- data/features/middleware/rack.feature +2 -2
- data/features/record_modes/all.feature +1 -1
- data/features/record_modes/new_episodes.feature +1 -1
- data/features/record_modes/none.feature +1 -1
- data/features/record_modes/once.feature +1 -1
- data/features/request_matching/custom_matcher.feature +1 -1
- data/features/request_matching/headers.feature +0 -2
- data/features/request_matching/playback_repeats.feature +1 -1
- data/features/request_matching/uri_without_param.feature +1 -1
- data/features/support/env.rb +1 -0
- data/features/test_frameworks/cucumber.feature +8 -8
- data/features/test_frameworks/rspec_macro.feature +2 -2
- data/features/test_frameworks/rspec_metadata.feature +1 -1
- data/gemfiles/typhoeus_old.gemfile +1 -1
- data/gemfiles/typhoeus_old.gemfile.lock +31 -57
- data/lib/vcr/cassette/migrator.rb +8 -1
- data/lib/vcr/configuration.rb +9 -2
- data/lib/vcr/library_hooks/excon.rb +2 -184
- data/lib/vcr/library_hooks/typhoeus.rb +1 -1
- data/lib/vcr/library_hooks/typhoeus_0.4.rb +4 -0
- data/lib/vcr/library_hooks/webmock.rb +1 -1
- data/lib/vcr/middleware/excon.rb +226 -0
- data/lib/vcr/version.rb +1 -1
- data/spec/acceptance/threading_spec.rb +28 -0
- data/spec/monkey_patches.rb +3 -7
- data/spec/quality_spec.rb +1 -1
- data/spec/spec_helper.rb +7 -4
- data/spec/support/http_library_adapters.rb +4 -3
- data/spec/support/shared_example_groups/excon.rb +22 -0
- data/spec/support/shared_example_groups/hook_into_http_library.rb +46 -46
- data/spec/support/shared_example_groups/request_hooks.rb +8 -8
- data/spec/vcr/cassette/erb_renderer_spec.rb +5 -5
- data/spec/vcr/cassette/http_interaction_list_spec.rb +52 -40
- data/spec/vcr/cassette/migrator_spec.rb +11 -11
- data/spec/vcr/cassette/persisters/file_system_spec.rb +11 -11
- data/spec/vcr/cassette/persisters_spec.rb +2 -2
- data/spec/vcr/cassette/serializers_spec.rb +13 -12
- data/spec/vcr/cassette_spec.rb +58 -58
- data/spec/vcr/configuration_spec.rb +43 -31
- data/spec/vcr/deprecations_spec.rb +3 -3
- data/spec/vcr/errors_spec.rb +25 -25
- data/spec/vcr/extensions/net_http_response_spec.rb +7 -7
- data/spec/vcr/library_hooks/excon_spec.rb +7 -85
- data/spec/vcr/library_hooks/fakeweb_spec.rb +15 -13
- data/spec/vcr/library_hooks/faraday_spec.rb +4 -4
- data/spec/vcr/library_hooks/typhoeus_0.4_spec.rb +5 -0
- data/spec/vcr/library_hooks/typhoeus_spec.rb +3 -3
- data/spec/vcr/library_hooks/webmock_spec.rb +13 -5
- data/spec/vcr/library_hooks_spec.rb +9 -9
- data/spec/vcr/middleware/faraday_spec.rb +10 -10
- data/spec/vcr/middleware/rack_spec.rb +20 -15
- data/spec/vcr/request_ignorer_spec.rb +3 -3
- data/spec/vcr/request_matcher_registry_spec.rb +88 -61
- data/spec/vcr/structs_spec.rb +85 -85
- data/spec/vcr/test_frameworks/cucumber_spec.rb +7 -7
- data/spec/vcr/test_frameworks/rspec_spec.rb +10 -10
- data/spec/vcr/util/hooks_spec.rb +20 -20
- data/spec/vcr/util/internet_connection_spec.rb +2 -2
- data/spec/vcr_spec.rb +50 -48
- data/vcr.gemspec +4 -4
- metadata +308 -372
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
M2E1NzkzNThjMThkYmM4MDg3NzVhNDI0NTM0OTkxZjQ2OGVjMGZhYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDBhNTNiNWE0Mjk2YTJlN2U4Zjk2OTEyZTE3ZGMxOThjODU0NzM2ZQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZTQzYzIwNWFmNTA0NWUxMDViMDk5NmU5NTVmMzU4NGMxYTUwYTFmMjNiOTQx
|
10
|
+
NDgwM2ZjY2RlZmZhNzVhYjkwOWZhOTFkMDExNDFmOTEyZGI2YmVlYzAwZjVl
|
11
|
+
ZWQ0N2E5YmJmMTM3NDEwOTVmNTlhODA4ZDdhYzZjYTY4MDg3YzM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZTEyOTM4NGYzYjk1MDY4NmYyOTc4ZTIwNjdmZDE3NTMyZjZkNjVkNjNmYTkx
|
14
|
+
ODU4N2ZkNjQ2NTUzZGNkNGU3YzIyYTVjY2VmMjAwYTBiYzJlODk1NzQ5MmY1
|
15
|
+
NTdkNGVjZGEwY2ZlNDQwYjlkNTU4Y2M0YzNiMmI0ZmIzMmYzNzU=
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
## Unreleased Changes
|
2
|
+
|
3
|
+
[Full Changelog](http://github.com/vcr/vcr/compare/v2.5.0...master)
|
4
|
+
|
5
|
+
* No significant changes.
|
6
|
+
|
7
|
+
## 2.5.0 (May 18, 2013)
|
8
|
+
|
9
|
+
[Full Changelog](http://github.com/vcr/vcr/compare/v2.4.0...v2.5.0)
|
10
|
+
|
11
|
+
Bug Fixes:
|
12
|
+
|
13
|
+
* Fix `around_http_request` so that it does not raise confusing
|
14
|
+
errors when requests are made in multiple threads.
|
15
|
+
* Fix `configure_rspec_metadata!` so that you can safely call it
|
16
|
+
more than once
|
17
|
+
|
18
|
+
Enhancements:
|
19
|
+
|
20
|
+
* Relax WebMock version checker to allow WebMock 1.10 and 1.11 without
|
21
|
+
issuing warnings (Johannes Würbach and Myron Marston).
|
22
|
+
* Update Excon integration to take advantage of new Excon middleware
|
23
|
+
architecture. This is a more robust way to hook into Excon and will
|
24
|
+
be less prone to breakage due to internal Excon changes (Myron
|
25
|
+
Marston).
|
26
|
+
|
27
|
+
Deprecations:
|
28
|
+
|
29
|
+
* Deprecate support for Typhoeus < 0.5. It will be removed in
|
30
|
+
VCR 3.0 (Sheel Choksi).
|
31
|
+
|
1
32
|
## 2.4.0 (January 4, 2013)
|
2
33
|
|
3
34
|
[Full Changelog](http://github.com/vcr/vcr/compare/v2.3.0...v2.4.0)
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vcr (2.
|
4
|
+
vcr (2.5.0)
|
5
5
|
|
6
6
|
GEM
|
7
|
-
remote:
|
7
|
+
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
addressable (2.3.
|
9
|
+
addressable (2.3.3)
|
10
10
|
appraisal (0.5.1)
|
11
11
|
bundler
|
12
12
|
rake
|
@@ -16,13 +16,14 @@ GEM
|
|
16
16
|
cucumber (>= 1.1.1)
|
17
17
|
ffi (>= 1.0.11)
|
18
18
|
rspec (>= 2.7.0)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
bouncy-castle-java (1.5.0146.1)
|
20
|
+
builder (3.2.0)
|
21
|
+
childprocess (0.3.9)
|
22
|
+
ffi (~> 1.0, >= 1.0.11)
|
23
|
+
coderay (1.0.9)
|
23
24
|
columnize (0.3.6)
|
24
25
|
cookiejar (0.3.0)
|
25
|
-
crack (0.3.
|
26
|
+
crack (0.3.2)
|
26
27
|
cucumber (1.1.9)
|
27
28
|
builder (>= 2.1.2)
|
28
29
|
diff-lcs (>= 1.1.2)
|
@@ -30,14 +31,14 @@ GEM
|
|
30
31
|
json (>= 1.4.6)
|
31
32
|
term-ansicolor (>= 1.0.6)
|
32
33
|
curb (0.8.3)
|
33
|
-
debugger (1.
|
34
|
+
debugger (1.3.3)
|
34
35
|
columnize (>= 0.3.1)
|
35
36
|
debugger-linecache (~> 1.1.1)
|
36
|
-
debugger-ruby_core_source (~> 1.
|
37
|
+
debugger-ruby_core_source (~> 1.2.0)
|
37
38
|
debugger-linecache (1.1.2)
|
38
39
|
debugger-ruby_core_source (>= 1.1.1)
|
39
|
-
debugger-ruby_core_source (1.
|
40
|
-
diff-lcs (1.1
|
40
|
+
debugger-ruby_core_source (1.2.0)
|
41
|
+
diff-lcs (1.2.1)
|
41
42
|
em-http-request (1.0.3)
|
42
43
|
addressable (>= 2.2.3)
|
43
44
|
cookiejar
|
@@ -46,15 +47,17 @@ GEM
|
|
46
47
|
http_parser.rb (>= 0.5.3)
|
47
48
|
em-socksify (0.2.1)
|
48
49
|
eventmachine (>= 1.0.0.beta.4)
|
49
|
-
ethon (0.5.
|
50
|
-
ffi (~> 1.
|
50
|
+
ethon (0.5.10)
|
51
|
+
ffi (~> 1.3.0)
|
51
52
|
mime-types (~> 1.18)
|
52
|
-
eventmachine (1.0.
|
53
|
-
|
53
|
+
eventmachine (1.0.1)
|
54
|
+
eventmachine (1.0.1-java)
|
55
|
+
excon (0.22.1)
|
54
56
|
fakeweb (1.3.0)
|
55
|
-
faraday (0.8.
|
57
|
+
faraday (0.8.6)
|
56
58
|
multipart-post (~> 1.1)
|
57
|
-
ffi (1.1
|
59
|
+
ffi (1.3.1)
|
60
|
+
ffi (1.3.1-java)
|
58
61
|
fuubar (1.0.0)
|
59
62
|
rspec (~> 2.0)
|
60
63
|
rspec-instafail (~> 0.2.0)
|
@@ -64,25 +67,36 @@ GEM
|
|
64
67
|
ruby-progressbar (~> 0.0.10)
|
65
68
|
gherkin (2.9.3)
|
66
69
|
json (>= 1.4.6)
|
67
|
-
|
70
|
+
gherkin (2.9.3-java)
|
71
|
+
json (>= 1.4.6)
|
72
|
+
github-markup (0.7.5)
|
68
73
|
http_parser.rb (0.5.3)
|
69
|
-
|
70
|
-
|
74
|
+
http_parser.rb (0.5.3-java)
|
75
|
+
httpclient (2.3.3)
|
76
|
+
jruby-openssl (0.8.2)
|
77
|
+
bouncy-castle-java (>= 1.5.0146.1)
|
78
|
+
json (1.6.8)
|
79
|
+
json (1.6.8-java)
|
71
80
|
linecache (0.46)
|
72
81
|
rbx-require-relative (> 0.0.4)
|
73
82
|
method_source (0.8.1)
|
74
|
-
mime-types (1.
|
83
|
+
mime-types (1.21)
|
75
84
|
multi_json (1.0.4)
|
76
|
-
multipart-post (1.
|
85
|
+
multipart-post (1.2.0)
|
77
86
|
patron (0.4.18)
|
78
|
-
pry (0.9.
|
87
|
+
pry (0.9.12)
|
88
|
+
coderay (~> 1.0.5)
|
89
|
+
method_source (~> 0.8)
|
90
|
+
slop (~> 3.4)
|
91
|
+
pry (0.9.12-java)
|
79
92
|
coderay (~> 1.0.5)
|
80
93
|
method_source (~> 0.8)
|
81
|
-
slop (~> 3.
|
82
|
-
|
83
|
-
rack
|
94
|
+
slop (~> 3.4)
|
95
|
+
spoon (~> 0.0)
|
96
|
+
rack (1.3.10)
|
97
|
+
rack-protection (1.4.0)
|
84
98
|
rack
|
85
|
-
rake (0.9.
|
99
|
+
rake (0.9.6)
|
86
100
|
rbx-require-relative (0.0.9)
|
87
101
|
redcarpet (1.17.2)
|
88
102
|
redis (2.2.2)
|
@@ -92,20 +106,21 @@ GEM
|
|
92
106
|
rest-client (>= 1.6.1)
|
93
107
|
rest-client (1.6.7)
|
94
108
|
mime-types (>= 1.16)
|
95
|
-
rspec (2.
|
96
|
-
rspec-core (~> 2.
|
97
|
-
rspec-expectations (~> 2.
|
98
|
-
rspec-mocks (~> 2.
|
99
|
-
rspec-core (2.
|
100
|
-
rspec-expectations (2.
|
101
|
-
diff-lcs (
|
109
|
+
rspec (2.13.0)
|
110
|
+
rspec-core (~> 2.13.0)
|
111
|
+
rspec-expectations (~> 2.13.0)
|
112
|
+
rspec-mocks (~> 2.13.0)
|
113
|
+
rspec-core (2.13.0)
|
114
|
+
rspec-expectations (2.13.0)
|
115
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
102
116
|
rspec-instafail (0.2.4)
|
103
|
-
rspec-mocks (2.
|
117
|
+
rspec-mocks (2.13.0)
|
104
118
|
ruby-debug (0.10.4)
|
105
119
|
columnize (>= 0.1)
|
106
120
|
ruby-debug-base (~> 0.10.4.0)
|
107
121
|
ruby-debug-base (0.10.4)
|
108
122
|
linecache (>= 0.3)
|
123
|
+
ruby-debug-base (0.10.4-java)
|
109
124
|
ruby-progressbar (0.0.10)
|
110
125
|
shoulda (2.9.2)
|
111
126
|
simplecov (0.5.4)
|
@@ -116,19 +131,21 @@ GEM
|
|
116
131
|
rack (~> 1.3, >= 1.3.6)
|
117
132
|
rack-protection (~> 1.2)
|
118
133
|
tilt (~> 1.3, >= 1.3.3)
|
119
|
-
slop (3.
|
134
|
+
slop (3.4.3)
|
135
|
+
spoon (0.0.1)
|
120
136
|
term-ansicolor (1.0.7)
|
121
|
-
tilt (1.3.
|
137
|
+
tilt (1.3.4)
|
122
138
|
timecop (0.3.5)
|
123
|
-
typhoeus (0.
|
124
|
-
ethon (~> 0.5.
|
125
|
-
webmock (1.
|
139
|
+
typhoeus (0.6.2)
|
140
|
+
ethon (~> 0.5.10)
|
141
|
+
webmock (1.11.0)
|
126
142
|
addressable (>= 2.2.7)
|
127
|
-
crack (>= 0.
|
143
|
+
crack (>= 0.3.2)
|
128
144
|
yajl-ruby (1.1.0)
|
129
|
-
yard (0.8.
|
145
|
+
yard (0.8.5.2)
|
130
146
|
|
131
147
|
PLATFORMS
|
148
|
+
java
|
132
149
|
ruby
|
133
150
|
|
134
151
|
DEPENDENCIES
|
@@ -139,7 +156,7 @@ DEPENDENCIES
|
|
139
156
|
curb (~> 0.8.0)
|
140
157
|
debugger
|
141
158
|
em-http-request (~> 1.0.2)
|
142
|
-
excon (
|
159
|
+
excon (~> 0.22)
|
143
160
|
fakeweb (~> 1.3.0)
|
144
161
|
faraday (~> 0.8)
|
145
162
|
fuubar
|
@@ -162,8 +179,8 @@ DEPENDENCIES
|
|
162
179
|
simplecov (~> 0.5.3)
|
163
180
|
sinatra (~> 1.3.2)
|
164
181
|
timecop (~> 0.3.5)
|
165
|
-
typhoeus (~> 0.
|
182
|
+
typhoeus (~> 0.6)
|
166
183
|
vcr!
|
167
|
-
webmock (~> 1.
|
184
|
+
webmock (~> 1.10)
|
168
185
|
yajl-ruby (~> 1.1.0)
|
169
186
|
yard
|
data/README.md
CHANGED
@@ -36,11 +36,11 @@ maintenance) and accurate (the response will contain the same headers and body y
|
|
36
36
|
* Automatically records and replays your HTTP interactions with minimal setup/configuration code.
|
37
37
|
* Supports and works with the HTTP stubbing facilities of multiple libraries. Currently, the
|
38
38
|
following are supported:
|
39
|
-
* [FakeWeb](https://github.com/chrisk/fakeweb)
|
40
39
|
* [WebMock](https://github.com/bblimke/webmock)
|
41
40
|
* [Typhoeus](https://github.com/typhoeus/typhoeus)
|
42
41
|
* [Faraday](https://github.com/technoweenie/faraday)
|
43
42
|
* [Excon](https://github.com/geemus/excon)
|
43
|
+
* [FakeWeb](https://github.com/chrisk/fakeweb) (deprecated)
|
44
44
|
* Supports multiple HTTP libraries:
|
45
45
|
* [Patron](http://github.com/toland/patron) (when using WebMock)
|
46
46
|
* [Curb](http://github.com/taf2/curb) (when using WebMock -- only supports Curl::Easy at the moment)
|
@@ -71,7 +71,7 @@ maintenance) and accurate (the response will contain the same headers and body y
|
|
71
71
|
|
72
72
|
The docs come in two flavors:
|
73
73
|
|
74
|
-
* The [relish docs](
|
74
|
+
* The [relish docs](https://relishapp.com/vcr/vcr/docs) contain
|
75
75
|
example-based documentation (VCR's cucumber suite, in fact). It's a
|
76
76
|
good place to look when you are first getting started with VCR, or if
|
77
77
|
you want to see an example of how to use a feature.
|
@@ -138,6 +138,7 @@ yard server --reload
|
|
138
138
|
Thanks also to the following people who have contributed patches or helpful suggestions:
|
139
139
|
|
140
140
|
* [Aaron Brethorst](http://github.com/aaronbrethorst)
|
141
|
+
* [Alexander Wenzowski](https://github.com/wenzowski)
|
141
142
|
* [Austen Ito](https://github.com/austenito)
|
142
143
|
* [Avdi Grimm](https://github.com/avdi)
|
143
144
|
* [Bartosz Blimke](http://github.com/bblimke)
|
@@ -154,6 +155,7 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
154
155
|
* [Hans Hasselberg](https://github.com/i0rek)
|
155
156
|
* [Ingemar](https://github.com/ingemar)
|
156
157
|
* [Jacob Green](https://github.com/Jacobkg)
|
158
|
+
* [Jay Shepherd](https://github.com/jayshepherd)
|
157
159
|
* [Jeff Pollard](https://github.com/Fluxx)
|
158
160
|
* [Joe Nelson](https://github.com/begriffs)
|
159
161
|
* [Jonathan Tron](https://github.com/JonathanTron)
|
@@ -161,6 +163,7 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
161
163
|
* [Karl Baum](https://github.com/kbaum)
|
162
164
|
* [Luke van der Hoeven](https://github.com/plukevdh)
|
163
165
|
* [Mark Burns](https://github.com/markburns)
|
166
|
+
* [Max Riveiro](https://github.com/kavu)
|
164
167
|
* [Michael Lavrisha](https://github.com/vrish88)
|
165
168
|
* [Mislav Marohnić](https://github.com/mislav)
|
166
169
|
* [Nathaniel Bibler](https://github.com/nbibler)
|
@@ -32,7 +32,7 @@ Feature: Decode compressed response
|
|
32
32
|
|
33
33
|
VCR.configure do |c|
|
34
34
|
c.cassette_library_dir = 'cassettes'
|
35
|
-
c.hook_into :
|
35
|
+
c.hook_into :webmock
|
36
36
|
c.default_cassette_options = { :serialize_with => :syck }
|
37
37
|
end
|
38
38
|
"""
|
@@ -47,7 +47,7 @@ Feature: Decode compressed response
|
|
47
47
|
And I run `ruby decompress.rb`
|
48
48
|
Then the file "cassettes/decompress.yml" should contain a YAML fragment like:
|
49
49
|
"""
|
50
|
-
|
50
|
+
Content-Encoding:
|
51
51
|
- gzip
|
52
52
|
"""
|
53
53
|
|
@@ -61,7 +61,7 @@ Feature: Decode compressed response
|
|
61
61
|
And I run `ruby decompress.rb`
|
62
62
|
Then the file "cassettes/decompress.yml" should contain a YAML fragment like:
|
63
63
|
"""
|
64
|
-
|
64
|
+
Content-Length:
|
65
65
|
- '43'
|
66
66
|
"""
|
67
67
|
And the file "cassettes/decompress.yml" should contain:
|
@@ -42,7 +42,7 @@ Feature: Dynamic ERB cassettes
|
|
42
42
|
require 'vcr'
|
43
43
|
|
44
44
|
VCR.configure do |c|
|
45
|
-
c.hook_into :
|
45
|
+
c.hook_into :webmock
|
46
46
|
c.cassette_library_dir = 'cassettes'
|
47
47
|
end
|
48
48
|
|
@@ -87,7 +87,7 @@ Feature: Dynamic ERB cassettes
|
|
87
87
|
require 'vcr'
|
88
88
|
|
89
89
|
VCR.configure do |c|
|
90
|
-
c.hook_into :
|
90
|
+
c.hook_into :webmock
|
91
91
|
c.cassette_library_dir = 'cassettes'
|
92
92
|
end
|
93
93
|
|
@@ -63,8 +63,9 @@ Feature: Error for HTTP request made when no cassette is in use
|
|
63
63
|
require 'vcr'
|
64
64
|
|
65
65
|
VCR.configure do |c|
|
66
|
-
c.hook_into :
|
66
|
+
c.hook_into :webmock
|
67
67
|
end
|
68
|
+
WebMock.allow_net_connect!
|
68
69
|
|
69
70
|
def make_request(context)
|
70
71
|
puts context
|
@@ -113,8 +114,9 @@ Feature: Error for HTTP request made when no cassette is in use
|
|
113
114
|
require 'vcr'
|
114
115
|
|
115
116
|
VCR.configure do |c|
|
116
|
-
c.hook_into :
|
117
|
+
c.hook_into :webmock
|
117
118
|
end
|
119
|
+
WebMock.allow_net_connect!
|
118
120
|
|
119
121
|
VCR.turn_off!
|
120
122
|
VCR.insert_cassette('example')
|
@@ -133,8 +135,9 @@ Feature: Error for HTTP request made when no cassette is in use
|
|
133
135
|
|
134
136
|
VCR.configure do |c|
|
135
137
|
c.cassette_library_dir = 'cassettes'
|
136
|
-
c.hook_into :
|
138
|
+
c.hook_into :webmock
|
137
139
|
end
|
140
|
+
WebMock.allow_net_connect!
|
138
141
|
|
139
142
|
VCR.turn_off!(:ignore_cassettes => true)
|
140
143
|
|