fitting 2.18.0 → 2.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/lib/fitting/records/tested/request.rb +4 -4
- data/lib/fitting/report/combinations.rb +1 -1
- data/lib/fitting/report/console.rb +3 -3
- data/lib/fitting/storage/responses.rb +2 -2
- data/lib/fitting/version.rb +1 -1
- data/lib/fitting.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d4c64b93e5cc274fd6ce45447011be34413072ac0cddc20d75799ef9ccb3f8d
|
4
|
+
data.tar.gz: be18cc02c5f5a3be1167d17bf46039c8b2f9cc404f0c7849297166bffa45a1d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f3b8b8a48f3927c09325dd9d0057b2cfe9294d495eb3693471f2e7e1a11f37cdc5165e44bbbd5d736bbb504875fa68e81473624c113217d1d2573b5735179e9
|
7
|
+
data.tar.gz: 00b71dc28323aefa7dd022a8ea441a337c5316228ffb2ddc0b6f6ad310bcd3fefcad35c174dcbe734fdd8cf1178992125f850d6729225a7627f0be70dbeb4706
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,9 +6,9 @@ module Fitting
|
|
6
6
|
class Records
|
7
7
|
class Tested
|
8
8
|
class Request
|
9
|
-
def initialize(env_response,
|
9
|
+
def initialize(env_response, metadata)
|
10
10
|
@env_response = env_response
|
11
|
-
@
|
11
|
+
@metadata = metadata
|
12
12
|
end
|
13
13
|
|
14
14
|
def method
|
@@ -28,11 +28,11 @@ module Fitting
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def test_path
|
31
|
-
@test_path ||= @
|
31
|
+
@test_path ||= @metadata.fetch(:location)
|
32
32
|
end
|
33
33
|
|
34
34
|
def test_file_path
|
35
|
-
@test_file_path ||=
|
35
|
+
@test_file_path ||= @metadata.fetch(:file_path)
|
36
36
|
end
|
37
37
|
|
38
38
|
def to_spherical
|
@@ -31,9 +31,9 @@ module Fitting
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def good?
|
34
|
-
return false
|
35
|
-
return false
|
36
|
-
return false
|
34
|
+
return false if @tests_without_prefixes.size != 0
|
35
|
+
return false if @tests_without_actions.size != 0
|
36
|
+
return false if @tests_without_responses.size != 0
|
37
37
|
|
38
38
|
@good
|
39
39
|
end
|
@@ -9,8 +9,8 @@ module Fitting
|
|
9
9
|
@tested_requests = []
|
10
10
|
end
|
11
11
|
|
12
|
-
def add(env_response,
|
13
|
-
@tested_requests.push(Fitting::Records::Tested::Request.new(env_response,
|
12
|
+
def add(env_response, metadata = {})
|
13
|
+
@tested_requests.push(Fitting::Records::Tested::Request.new(env_response, metadata))
|
14
14
|
end
|
15
15
|
|
16
16
|
def statistics
|
data/lib/fitting/version.rb
CHANGED
data/lib/fitting.rb
CHANGED
@@ -38,12 +38,12 @@ module Fitting
|
|
38
38
|
FileUtils.rm_r Dir.glob('fitting_tests/*'), force: true
|
39
39
|
|
40
40
|
RSpec.configure do |config|
|
41
|
-
config.after(:each, type: :request) do
|
42
|
-
responses.add(response,
|
41
|
+
config.after(:each, type: :request) do |example|
|
42
|
+
responses.add(response, example.metadata)
|
43
43
|
end
|
44
44
|
|
45
|
-
config.after(:each, type: :controller) do
|
46
|
-
responses.add(response,
|
45
|
+
config.after(:each, type: :controller) do |example|
|
46
|
+
responses.add(response, example.metadata)
|
47
47
|
end
|
48
48
|
|
49
49
|
config.after(:suite) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.18.
|
4
|
+
version: 2.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d.efimov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|