mocked_website 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mocked_website.rb +6 -1
- data/lib/mocked_website/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906a85be6a461426d259206a42c25bc0a7926c29
|
4
|
+
data.tar.gz: 0d021d49dec3194666b43bab7284ac7b7e9c4de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d043a4a038ed8df231dc543a95bf1cd539b9b9eca29cf8f9811736bff413c4804dfd084889fed3d69af71c21aa8d3b0515cb052d6255d82f8af72502de70530
|
7
|
+
data.tar.gz: b31846266a56f3928247225dd885f59b18b5c9611e5a2d83f4189afea91405949104f92186b6c511ea5de9b408294301daf4e32a4fa0eadecc9caf4a2a33f0c7
|
data/Gemfile.lock
CHANGED
data/lib/mocked_website.rb
CHANGED
@@ -22,7 +22,12 @@ module MockedWebsite
|
|
22
22
|
def app.setup
|
23
23
|
WebMock::API.stub_request(:any, @pattern).to_rack(@rack_app)
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
|
+
# Only define teardown if it doesn't already exist,
|
27
|
+
# helps to provide a common API
|
28
|
+
if !app.respond_to?(:teardown)
|
29
|
+
def app.teardown
|
30
|
+
end
|
26
31
|
end
|
27
32
|
|
28
33
|
return app
|