projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14844: Adds collections controller tests and updates collection model tests
[arvados.git]
/
services
/
api
/
test
/
unit
/
app_version_test.rb
diff --git
a/services/api/test/unit/app_version_test.rb
b/services/api/test/unit/app_version_test.rb
index 4718ac2ef6ae2cbeba4a41291c7b9144be6c33f5..dd880042702e7692e4689ddde59578e4f581c5ea 100644
(file)
--- a/
services/api/test/unit/app_version_test.rb
+++ b/
services/api/test/unit/app_version_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
class AppVersionTest < ActiveSupport::TestCase
require 'test_helper'
class AppVersionTest < ActiveSupport::TestCase
@@
-20,9
+24,12
@@
class AppVersionTest < ActiveSupport::TestCase
end
end
end
end
- test 'override with configuration' do
+ test 'override with configuration
"foobar"
' do
Rails.configuration.source_version = 'foobar'
assert_equal 'foobar', AppVersion.hash
Rails.configuration.source_version = 'foobar'
assert_equal 'foobar', AppVersion.hash
+ end
+
+ test 'override with configuration false' do
Rails.configuration.source_version = false
assert_not_equal 'foobar', AppVersion.hash
end
Rails.configuration.source_version = false
assert_not_equal 'foobar', AppVersion.hash
end