#9 Active Storage - GitHub workflow
This commit is contained in:
parent
377bcc4de1
commit
179821a6bd
2
.github/workflows/rubyonrails.yml
vendored
2
.github/workflows/rubyonrails.yml
vendored
@ -128,7 +128,7 @@ jobs:
|
||||
echo "# Active Storage" > /opt/redmine/config/storage.yml
|
||||
echo "test:" >> /opt/redmine/config/storage.yml
|
||||
echo " service: Disk" >> /opt/redmine/config/storage.yml
|
||||
echo " root: <%= Rails.root.join('dmsf') %>" >> /opt/redmine/config/storage.yml
|
||||
echo " root: <%= Rails.root.join('files', 'dmsf') %>" >> /opt/redmine/config/storage.yml
|
||||
- name: Install Redmine
|
||||
# Install Redmine
|
||||
run: |
|
||||
|
||||
@ -35,6 +35,7 @@ class DmsfWorkflowTest < RedmineDmsf::Test::UnitTest
|
||||
@wfsac1 = DmsfWorkflowStepAction.find 1
|
||||
@revision1 = DmsfFileRevision.find 1
|
||||
@revision2 = DmsfFileRevision.find 2
|
||||
@revision3 = DmsfFileRevision.find 3
|
||||
end
|
||||
|
||||
def test_create
|
||||
@ -132,9 +133,9 @@ class DmsfWorkflowTest < RedmineDmsf::Test::UnitTest
|
||||
end
|
||||
|
||||
def test_assign
|
||||
@wf2.assign @revision2.id
|
||||
@wf2.assign @revision3.id
|
||||
@wf2.dmsf_workflow_steps.each do |step|
|
||||
assert DmsfWorkflowStepAssignment.exists?(dmsf_workflow_step_id: step.id, dmsf_file_revision_id: @revision2.id)
|
||||
assert DmsfWorkflowStepAssignment.exists?(dmsf_workflow_step_id: step.id, dmsf_file_revision_id: @revision3.id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user