projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17119: remove the default project_class again on the group model, it is
[arvados.git]
/
services
/
api
/
test
/
unit
/
collection_test.rb
diff --git
a/services/api/test/unit/collection_test.rb
b/services/api/test/unit/collection_test.rb
index 70645615a062d3a967de2af32e60ef67ff2f50d2..916ca095872db7a3a80d59799654dc32504e1f2b 100644
(file)
--- a/
services/api/test/unit/collection_test.rb
+++ b/
services/api/test/unit/collection_test.rb
@@
-190,7
+190,7
@@
class CollectionTest < ActiveSupport::TestCase
test "preserve_version updates" do
Rails.configuration.Collections.CollectionVersioning = true
test "preserve_version updates" do
Rails.configuration.Collections.CollectionVersioning = true
- Rails.configuration.Collections.PreserveVersionIfIdle =
3600
+ Rails.configuration.Collections.PreserveVersionIfIdle =
-1 # disabled
act_as_user users(:active) do
# Set up initial collection
c = create_collection 'foo', Encoding::US_ASCII
act_as_user users(:active) do
# Set up initial collection
c = create_collection 'foo', Encoding::US_ASCII
@@
-227,7
+227,10
@@
class CollectionTest < ActiveSupport::TestCase
assert_equal 2, c.replication_desired
assert_equal true, c.preserve_version
# This is a versionable update
assert_equal 2, c.replication_desired
assert_equal true, c.preserve_version
# This is a versionable update
- c.update_attributes!({'name' => 'foobar'})
+ c.update_attributes!({
+ 'preserve_version' => false,
+ 'name' => 'foobar'
+ })
c.reload
assert_equal 3, c.version
assert_equal false, c.preserve_version
c.reload
assert_equal 3, c.version
assert_equal false, c.preserve_version