rspec-webservice_matchers 4.3.0 → 4.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74cae05a568aaf50d4a5024783e63f569416dde2
4
- data.tar.gz: 6ff3a433c3867e935422a9ad9b8d175cc9104299
3
+ metadata.gz: b1aa829b584e6a7d3663e5465894ef8b45427bf4
4
+ data.tar.gz: ebe6407f65828c444d4177c6b3af487365352ea1
5
5
  SHA512:
6
- metadata.gz: 63d78bb3502bdcbf84758a7962da667fdba8a83f7732bd4a05d746e8d424ca6c3312bd8f025202aebbc7b7f908494ff1544c9e2c91b3c46c78843a297eccb5fa
7
- data.tar.gz: cdb219e308ec0c5402f304e49247bcdfe011fa489e0f48dd013e41388c798cd8c1c2cd201327b50b43e164b39b33debf4ec958d675873ff43afb167ec4947ab5
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. Requires a [Google website API key](https://developers.google.com/speed/docs/insights/v2/getting-started) in the environment variable `WEBSERVICE_MATCHER_INSIGHTS_KEY`.
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
@@ -34,7 +34,7 @@ module RSpec
34
34
  end
35
35
 
36
36
  failure_message do
37
- "PageSpeed score is #{score}. Score must be 90 or greater."
37
+ "PageSpeed score is #{score}/100."
38
38
  end
39
39
  end
40
40
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module WebserviceMatchers
3
- VERSION = '4.3.0'
3
+ VERSION = '4.3.1'
4
4
  end
5
5
  end
@@ -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 keyx/)
30
+ }.to raise_error(RuntimeError, /API key/)
31
31
 
32
32
  # Replace the key
33
33
  ENV['WEBSERVICE_MATCHER_INSIGHTS_KEY'] = key
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-webservice_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter