dor-workflow-client 7.0.0 → 7.0.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec7fdf12fdbda526eb0cea1d89fde04626a8589b09c1737b5d3bf085a57bcbc
|
4
|
+
data.tar.gz: f6b8e662f70cdd9977bdda365391a1fbe96eca213b8d0dfdf09c407ef635480a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fea03cec5f39ed246decc53a87f14601df480443f0cdcb4f87dee0ffbaafb7e06d5bc85d39e7125c3ac17a9d0464f97c71f65205a2d0cd5d8c12d9bfee75494d
|
7
|
+
data.tar.gz: 5274a94c239f252ace6d324092a954c5f901522514323b11a0dd39fcc94073b8b81c38818a9e0dd350d80201c4f49412740eb45b3871bf87889ead10a1bf49f0
|
data/Gemfile.lock
CHANGED
@@ -21,6 +21,15 @@ module Dor
|
|
21
21
|
JSON.parse(body)
|
22
22
|
end
|
23
23
|
|
24
|
+
# Retrieves a list of workflow template name
|
25
|
+
#
|
26
|
+
# @return [Array<String>] the list of templates
|
27
|
+
#
|
28
|
+
def all
|
29
|
+
body = requestor.request 'workflow_templates'
|
30
|
+
JSON.parse(body)
|
31
|
+
end
|
32
|
+
|
24
33
|
private
|
25
34
|
|
26
35
|
attr_reader :requestor
|
@@ -18,4 +18,15 @@ RSpec.describe Dor::Workflow::Client::WorkflowTemplate do
|
|
18
18
|
expect(mock_requestor).to have_received(:request).with('workflow_templates/accessionWF')
|
19
19
|
end
|
20
20
|
end
|
21
|
+
|
22
|
+
describe '#all' do
|
23
|
+
subject(:workflow_templates) { routes.all }
|
24
|
+
|
25
|
+
let(:data) { '["assemblyWF","registrationWF"]' }
|
26
|
+
|
27
|
+
it 'returns a list of templates' do
|
28
|
+
expect(workflow_templates).to eq %w[assemblyWF registrationWF]
|
29
|
+
expect(mock_requestor).to have_received(:request).with('workflow_templates')
|
30
|
+
end
|
31
|
+
end
|
21
32
|
end
|