rhino_project_core 0.20.0.beta.26 → 0.20.0.beta.33
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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3afa527e9614235da21aa1c3c92a2b4a22c61e128050c474f95ea36ff19d8c50
|
4
|
+
data.tar.gz: ce1a0f0be7bee9c0546b7073d97912ab07ea5ae926811c3ba9096987d66d2ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bc5ad95aa7073899ee74abda2027db9b3f2c0acb4d090f73fd5ee04ffd26983e7ca0236f8bb3ce19792be07052d040c374bf7d010d12144f153911d39115dbf
|
7
|
+
data.tar.gz: ceee53f831333d457d63944fb97f60b39a0f86e2dab2e2cdc15f9324b6d08605f966aff32795aea845422a2dd67f3cd531ae3e4756b315d684e84c9ee2e68694
|
@@ -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.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Rosevear
|
8
|
-
autorequire:
|
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
|
@@ -225,7 +225,7 @@ homepage: ''
|
|
225
225
|
licenses:
|
226
226
|
- MIT
|
227
227
|
metadata: {}
|
228
|
-
post_install_message:
|
228
|
+
post_install_message:
|
229
229
|
rdoc_options: []
|
230
230
|
require_paths:
|
231
231
|
- lib
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: 1.3.1
|
242
242
|
requirements: []
|
243
243
|
rubygems_version: 3.3.26
|
244
|
-
signing_key:
|
244
|
+
signing_key:
|
245
245
|
specification_version: 4
|
246
246
|
summary: ''
|
247
247
|
test_files: []
|