rspec-webservice_matchers 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1aa829b584e6a7d3663e5465894ef8b45427bf4
|
4
|
+
data.tar.gz: ebe6407f65828c444d4177c6b3af487365352ea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126f1c5be8b09960c2cdb56fa1f38a67fa308fe55b48977a837509302e199caab4c641519a74e079d4960403c520df82b72674e6236d8ef394c41276caf5af67
|
7
|
+
data.tar.gz: 70dbf7b4aaf12cdd638574988268ba37694f04fe9a2863c0a8afa29df88efb990931ad2813b328321eef80a5fbea3aaca02e03b9b34fccccbac2bce9f51dda5f
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ These new RSpec matchers:
|
|
29
29
|
| Notes
|
30
30
|
-------------------------------|------------------------------------------------
|
31
31
|
**be_up** | Looks for a 200, but will follow up to four redirects
|
32
|
-
**be_fast** | Checks for Google [PageSpeed](https://developers.google.com/speed/pagespeed/insights/) score >= 90.
|
32
|
+
**be_fast** | Checks for Google [PageSpeed](https://developers.google.com/speed/pagespeed/insights/) score >= 90. Expects the environment variable `WEBSERVICE_MATCHER_INSIGHTS_KEY` to contain a [Google "server" API key](https://developers.google.com/speed/docs/insights/v2/getting-started) with PageSpeed Insights API enabled.
|
33
33
|
**enforce_https_everywhere** | Passes if the site will _only_ allow SSL connections. See the [EFF project, HTTPS Everywhere](https://www.eff.org/https-everywhere)
|
34
34
|
**have_a_valid_cert** | Will fail if there's no cert, or it's expired or incorrectly configured
|
35
35
|
**be_status** | A low-level matcher to explicitly check for a 200, 503, or any other code
|
@@ -27,7 +27,7 @@ describe RSpec::WebserviceMatchers::BeFast do
|
|
27
27
|
|
28
28
|
expect {
|
29
29
|
expect('nonstop.qa').not_to be_fast
|
30
|
-
}.to raise_error(RuntimeError, /API
|
30
|
+
}.to raise_error(RuntimeError, /API key/)
|
31
31
|
|
32
32
|
# Replace the key
|
33
33
|
ENV['WEBSERVICE_MATCHER_INSIGHTS_KEY'] = key
|