rspec-webservice_matchers 4.11.0 → 4.12.0

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: 3a087dde9dd0b72fcfc3677cea0c7c3b7e706404
4
- data.tar.gz: 30488dffd2af4fbe03a7d1906c97601506732a23
3
+ metadata.gz: 6da37f369a1221264a2b4d9bc0e1559172564315
4
+ data.tar.gz: 0ce44377d86f91d9f2f07581fced97b806d0d0c5
5
5
  SHA512:
6
- metadata.gz: abe119853f955ad508086e23ffe2df8761591816bc8ee05b42972b549e5a895fc8506310080d3e422f5ee338ec114091b510efb5643cecaea00edffe22d624e0
7
- data.tar.gz: 1ec4dff0037ef5a129e18edecfd198264bd2f195b668f5a6cd5a7b0bfb32afe138748f232d1d786a4a2dd3f699e3de3ed292b0362b0d9e5fb3677ad7bfc47f68
6
+ metadata.gz: 71396306b5167812a11d5ad481731c887355d04072e2dc9c095146757fd835467f0f340311a71524dac442379b986341b3c1999afe35307c27c9323e7bcfd29c
7
+ data.tar.gz: 7acae6de0abe6f33eae3a5a00121be13eda160c7d4b6d85131c43359fed42171b356934918716f0bac97b4ab2a3a53d623c04b7f28ab9badc1cfa38ef7a8b054
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ 4.12.0
2
+ ------
3
+ Refactoring.
4
+ Change the Be fast test result for response to be the raw response.
5
+
1
6
  4.11.0
2
7
  ------
3
8
  Adds the full PageSpeed result to the `BeFast::TestResult`.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module RSpec
3
3
  module WebserviceMatchers
4
- VERSION = '4.11.0'
4
+ VERSION = '4.12.0'
5
5
  end
6
6
  end
@@ -15,7 +15,7 @@ module WebTest
15
15
  attr_accessor :success, :score, :response
16
16
  alias success? success
17
17
 
18
- validates :success, inclusion: [true, false]
18
+ validates :success, type: Boolean
19
19
  validates :score, inclusion: 0..100
20
20
  validates :response, type: Hash
21
21
  end
@@ -27,7 +27,7 @@ module WebTest
27
27
  TestResult.new do |r|
28
28
  r.score = response.fetch(:score)
29
29
  r.success = r.score >= 85
30
- r.response = response
30
+ r.response = response[:raw_response]
31
31
  end
32
32
  end
33
33
 
@@ -8,7 +8,7 @@ module WebTest
8
8
  attr_accessor :success, :status_code
9
9
  alias success? success
10
10
 
11
- validates :success, inclusion: [true, false]
11
+ validates :success, type: Boolean
12
12
  validates :status_code, inclusion: 100..510
13
13
  end
14
14
 
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_runtime_dependency 'rspec-expectations', '~> 3.0'
32
32
  spec.add_runtime_dependency 'faraday'
33
33
  spec.add_runtime_dependency 'faraday_middleware'
34
- spec.add_runtime_dependency 'validated_object'
34
+ spec.add_runtime_dependency 'validated_object', '~> 1.1.0'
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-webservice_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.11.0
4
+ version: 4.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-01 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,16 +154,16 @@ dependencies:
154
154
  name: validated_object
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: 1.1.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0'
166
+ version: 1.1.0
167
167
  description: Black-box web app configuration testing
168
168
  email:
169
169
  - robb@weblaws.org