rspectacular 0.43.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspectacular/plugins/omniauth.rb +5 -5
- data/lib/rspectacular/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16290f005d85c1b14f8b364276c5eff983449a49
|
4
|
+
data.tar.gz: 3d8faceafa6d96441ce907d2669fd294122afa8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c57d8ce4854d0a9d92b11d248a11c1d95be407cb16260f8d13b9e74ad3b71baaa23c835191d0a5ea97b165d90a36e11bf85f74d8a43fd25788adb65a718188
|
7
|
+
data.tar.gz: eb06ec87a8b7cb1ca3940ea1e64b6fec354e9e3708d7c3e1038cf2e7cfbcfa1a02d8310460ab9b1438937c07da6743e80b850646b8d5db53e9e0de7251e10f46
|
@@ -24,7 +24,7 @@ begin
|
|
24
24
|
previous_omniauth_test_mode = OmniAuth.config.test_mode
|
25
25
|
OmniAuth.config.test_mode = false
|
26
26
|
|
27
|
-
example.metadata.fetch(:
|
27
|
+
example.metadata.fetch(:mock_oauth, {}).each do |auth_type, auth_hash|
|
28
28
|
OmniAuth.config.add_mock(auth_type, auth_hash)
|
29
29
|
end
|
30
30
|
|
@@ -33,11 +33,11 @@ begin
|
|
33
33
|
OmniAuth.config.test_mode = previous_omniauth_test_mode
|
34
34
|
end
|
35
35
|
|
36
|
-
config.before(:each, type: :controller,
|
37
|
-
if example.metadata[:
|
38
|
-
request.env['omniauth.auth'] = OmniAuth.config.mock_auth[example.metadata[:
|
36
|
+
config.before(:each, type: :controller, mock_oauth: lambda { |v| !!v }) do |example|
|
37
|
+
if example.metadata[:mock_oauth].is_a? Symbol
|
38
|
+
request.env['omniauth.auth'] = OmniAuth.config.mock_auth[example.metadata[:mock_oauth]]
|
39
39
|
else
|
40
|
-
request.env['omniauth.auth'] = OmniAuth::AuthHash.new(example.metadata[:
|
40
|
+
request.env['omniauth.auth'] = OmniAuth::AuthHash.new(example.metadata[:mock_oauth])
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspectacular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.44.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|