rspectacular 0.26.0 → 0.27.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 +4 -4
- data/lib/rspectacular/plugins/capybara.rb +6 -0
- data/lib/rspectacular/plugins/omniauth.rb +5 -3
- data/lib/rspectacular/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: 63f7625baa9bb8302148f4d20f0e0ef9c0a77845
|
|
4
|
+
data.tar.gz: ed8ed841a6757b97011b73344d428215a0ff690f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10272de49c24acf6f7d9de0e5fdee24b805574eba9ec1235c31dc7cc43bcb329165676ccd33bcc45761d160ac37b6cbce28153905afd16561167630e32ff2b6a
|
|
7
|
+
data.tar.gz: 19885d09c6de57460efb2483d81ddae969328f01aa24f41b05b2b6551ca46e329283e2db162491af95f5ed265d9f79cb2b876daef5d9db19468cf4381698cf55
|
|
@@ -28,6 +28,12 @@ if defined?(Capybara::Driver::Base)
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
Capybara.configure do |config|
|
|
32
|
+
config.match = :prefer_exact
|
|
33
|
+
config.ignore_hidden_elements = true
|
|
34
|
+
config.visible_text_only = true
|
|
35
|
+
end
|
|
36
|
+
|
|
31
37
|
if defined?(Chamber)
|
|
32
38
|
Capybara.default_host = Chamber.env.http.host_with_port
|
|
33
39
|
Capybara.app_host = Chamber.env.http.base_url
|
|
@@ -9,9 +9,11 @@ begin
|
|
|
9
9
|
###
|
|
10
10
|
# Tell OmniAuth to just return whatever hash we want for each auth type
|
|
11
11
|
#
|
|
12
|
-
OmniAuth.config
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
OmniAuth.configure do |config|
|
|
13
|
+
config.test_mode = true
|
|
14
|
+
config.mock_auth[:facebook] = OmniAuth::Facebook::MockAuthentication.user
|
|
15
|
+
config.mock_auth[:twitter] = OmniAuth::Twitter::MockAuthentication.user
|
|
16
|
+
end
|
|
15
17
|
|
|
16
18
|
###
|
|
17
19
|
# Except we don't want OmniAuth to fake anything when doing live tests
|
data/lib/rspectacular/version.rb
CHANGED