rhino_project_core 0.20.0.beta.29 → 0.20.0.beta.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rhino/test_case/controller.rb +8 -2
- data/lib/rhino/version.rb +1 -1
- 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: 989ec372278efaf34bfd49647d37e3116bef5997d5cd6f878324ffc35b7a65ac
|
4
|
+
data.tar.gz: 47d02ec23c34e49a54598c8897d050b8fb47d13311a39fc7186b097cfd5ebdb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb769ec5642bac7ebad49ef883150660f46d2f26ead2abb5fb91c5631efbc140677df3cd0e340b1ff0de1613556841507c63376ae330c47c5d16083be5c0d154
|
7
|
+
data.tar.gz: ec93a1cd67c087023bb3fde3a0d74d236cad2a7b11059f887b8735241289aede40d4e66191a53f33d496d0b2eaf961c66b9fbd23595090496692d6ce04659e99
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
module Rhino
|
4
4
|
module TestCase
|
5
|
+
# rubocop:disable Metrics/ClassLength
|
5
6
|
class ControllerTest < ActionDispatch::IntegrationTest
|
6
7
|
def setup
|
7
8
|
DeviseTokenAuth.cookie_attributes[:secure] = false
|
@@ -35,8 +36,8 @@ module Rhino
|
|
35
36
|
post path, params:, xhr: true, as: :json
|
36
37
|
end
|
37
38
|
|
38
|
-
def patch_api(path, params: {})
|
39
|
-
patch path, params:, xhr: true, as: :json
|
39
|
+
def patch_api(path, params: {}, headers: {})
|
40
|
+
patch path, params:, xhr: true, as: :json, headers:
|
40
41
|
end
|
41
42
|
|
42
43
|
def put_api(path, params: {})
|
@@ -96,6 +97,10 @@ module Rhino
|
|
96
97
|
assert response.cookies[DeviseTokenAuth.cookie_name], "Auth cookie #{DeviseTokenAuth.cookie_name} not present"
|
97
98
|
end
|
98
99
|
|
100
|
+
def parsed_response_ids
|
101
|
+
parsed_response.fetch("results", []).map { |result| result["id"] }
|
102
|
+
end
|
103
|
+
|
99
104
|
def parsed_response
|
100
105
|
JSON.parse response.body
|
101
106
|
end
|
@@ -130,5 +135,6 @@ module Rhino
|
|
130
135
|
}
|
131
136
|
end
|
132
137
|
end
|
138
|
+
# rubocop:enable Metrics/ClassLength
|
133
139
|
end
|
134
140
|
end
|
data/lib/rhino/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhino_project_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.0.beta.
|
4
|
+
version: 0.20.0.beta.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Rosevear
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|