Redmine 4.1 compatibility
This commit is contained in:
parent
a59ec7cd4a
commit
6c4987430e
@ -30,9 +30,6 @@ class DmsfWebdavMoveTest < RedmineDmsf::Test::IntegrationTest
|
||||
|
||||
def setup
|
||||
@admin = credentials 'admin'
|
||||
@admin_user = User.find_by_login(+'admin')
|
||||
@admin_user.terms_accepted = true
|
||||
@admin_user.save
|
||||
@jsmith = credentials 'jsmith'
|
||||
@project1 = Project.find 1
|
||||
@file1 = DmsfFile.find 1
|
||||
|
||||
@ -33,13 +33,7 @@ class DmsfWebdavMoveTest < RedmineDmsf::Test::IntegrationTest
|
||||
Setting.plugin_redmine_dmsf['dmsf_storage_directory'] = 'files/dmsf'
|
||||
FileUtils.cp_r File.join(File.expand_path('../../../fixtures/files', __FILE__), '.'), DmsfFile.storage_path
|
||||
@admin = credentials 'admin'
|
||||
@admin_user = User.find_by_login(+'admin')
|
||||
@admin_user.terms_accepted = true
|
||||
@admin_user.save
|
||||
@jsmith = credentials 'jsmith'
|
||||
@jsmith_user = User.find_by_login(+'jsmith')
|
||||
@jsmith_user.terms_accepted = true
|
||||
@jsmith_user.save
|
||||
@project1 = Project.find 1
|
||||
@file1 = DmsfFile.find 1
|
||||
@file10 = DmsfFile.find 10
|
||||
|
||||
@ -34,9 +34,6 @@ class DmsfWebdavPutTest < RedmineDmsf::Test::IntegrationTest
|
||||
FileUtils.cp_r File.join(File.expand_path('../../../fixtures/files', __FILE__), '.'), DmsfFile.storage_path
|
||||
@admin = credentials 'admin'
|
||||
@jsmith = credentials 'jsmith'
|
||||
@jsmith_user = User.find_by_login(+'jsmith')
|
||||
@jsmith_user.terms_accepted = true
|
||||
@jsmith_user.save
|
||||
@project1 = Project.find 1
|
||||
@project2 = Project.find 2
|
||||
@role = Role.find_by(name: 'Manager')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user