parliament-utils 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parliament/utils/test_helpers/vcr_helper.rb +13 -1
- data/lib/parliament/utils/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: eaca2cbd7486b718f90979812c60e0f2833e7299
|
4
|
+
data.tar.gz: a4176b3d86d56939891921b4c326206b4478b02e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5889acc132338f9e3bb4950d6b0d53c21a34c6be27ed56a9096f551bbfb1de90cd8c6e1274434134dd6b89259b9a6a75912dc9feffbf4dd27a15a25b6f0d3af
|
7
|
+
data.tar.gz: 2c19d01a3c0d4bc0cfa49f01d5532a3ce0a0037c193dbae30689ea5be04b9324dfa244f8294a05a5177506ddcf81229d455dcb9d7025d8be580017fc51a56d45
|
@@ -2,9 +2,19 @@ module Parliament
|
|
2
2
|
module Utils
|
3
3
|
module TestHelpers
|
4
4
|
module VCRHelper
|
5
|
-
|
5
|
+
begin
|
6
|
+
require 'vcr'
|
7
|
+
|
8
|
+
LOADED_VCR = true
|
9
|
+
rescue LoadError
|
10
|
+
puts 'VCR Helper could not find VCR. This may be expected in production environments.'
|
11
|
+
|
12
|
+
LOADED_VCR = false
|
13
|
+
end
|
6
14
|
|
7
15
|
def self.load_rspec_config(config)
|
16
|
+
return unless LOADED_VCR
|
17
|
+
|
8
18
|
# URIs that appear frequently
|
9
19
|
parliament_uri = 'http://localhost:3030'
|
10
20
|
bandiera_uri = 'http://localhost:5000'
|
@@ -82,6 +92,8 @@ module Parliament
|
|
82
92
|
end
|
83
93
|
end
|
84
94
|
end
|
95
|
+
|
96
|
+
config
|
85
97
|
end
|
86
98
|
end
|
87
99
|
end
|