projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18948: Update test.
[arvados.git]
/
services
/
api
/
test
/
unit
/
workflow_test.rb
diff --git
a/services/api/test/unit/workflow_test.rb
b/services/api/test/unit/workflow_test.rb
index c7c528828d5887d62c62a8077ad4f476719da5c9..26cd7f215ed557077bf84ac34c78219fcccda00c 100644
(file)
--- a/
services/api/test/unit/workflow_test.rb
+++ b/
services/api/test/unit/workflow_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
class WorkflowTest < ActiveSupport::TestCase
require 'test_helper'
class WorkflowTest < ActiveSupport::TestCase
@@
-85,8
+89,8
@@
class WorkflowTest < ActiveSupport::TestCase
definition = "more: etc"
w.update_attributes!(definition: definition)
w.reload
definition = "more: etc"
w.update_attributes!(definition: definition)
w.reload
- assert_
equal nil,
w.name
- assert_
equal nil,
w.description
+ assert_
nil
w.name
+ assert_
nil
w.description
# Workflow name and desc set using definition yaml should be cleared
# if definition yaml is cleared
# Workflow name and desc set using definition yaml should be cleared
# if definition yaml is cleared
@@
-96,8
+100,8
@@
class WorkflowTest < ActiveSupport::TestCase
definition = nil
w.update_attributes!(definition: definition)
w.reload
definition = nil
w.update_attributes!(definition: definition)
w.reload
- assert_
equal nil,
w.name
- assert_
equal nil,
w.description
+ assert_
nil
w.name
+ assert_
nil
w.description
# Workflow name and desc should be set to provided custom values
definition = "name: test name 3\ndescription: test desc 3\nother: some more"
# Workflow name and desc should be set to provided custom values
definition = "name: test name 3\ndescription: test desc 3\nother: some more"