Redmine 4.1 compatibility
This commit is contained in:
parent
ddfd2f3a92
commit
7db28dfba5
@ -31,6 +31,7 @@ class DmsfWebdavMoveTest < RedmineDmsf::Test::IntegrationTest
|
||||
def setup
|
||||
@admin = credentials 'admin'
|
||||
@jsmith = credentials 'jsmith'
|
||||
@admin_user = User.find_by(login: 'admin')
|
||||
@project1 = Project.find 1
|
||||
@file1 = DmsfFile.find 1
|
||||
# Fix permissions for jsmith's role
|
||||
@ -52,6 +53,7 @@ class DmsfWebdavMoveTest < RedmineDmsf::Test::IntegrationTest
|
||||
assert_kind_of Project, @project1
|
||||
assert_kind_of DmsfFile, @file1
|
||||
assert_kind_of Role, @role
|
||||
assert_kind_of User, @admin_user
|
||||
end
|
||||
|
||||
def test_lock_file_already_locked_by_other
|
||||
|
||||
@ -34,6 +34,8 @@ class DmsfWebdavMoveTest < 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')
|
||||
@admin_user = User.find_by(login: 'admin')
|
||||
@project1 = Project.find 1
|
||||
@file1 = DmsfFile.find 1
|
||||
@file10 = DmsfFile.find 10
|
||||
@ -70,6 +72,8 @@ class DmsfWebdavMoveTest < RedmineDmsf::Test::IntegrationTest
|
||||
assert_kind_of DmsfFile, @file1
|
||||
assert_kind_of DmsfFile, @file10
|
||||
assert_kind_of DmsfFolder, @folder1
|
||||
assert_kind_of User, @jsmith_user
|
||||
assert_kind_of User, @admin_user
|
||||
end
|
||||
|
||||
def test_move_denied_for_anonymous
|
||||
|
||||
@ -34,6 +34,7 @@ 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')
|
||||
@project1 = Project.find 1
|
||||
@project2 = Project.find 2
|
||||
@role = Role.find_by(name: 'Manager')
|
||||
@ -62,6 +63,7 @@ class DmsfWebdavPutTest < RedmineDmsf::Test::IntegrationTest
|
||||
assert_kind_of Project, @project1
|
||||
assert_kind_of Project, @project2
|
||||
assert_kind_of Role, @role
|
||||
assert_kind_of User, @jsmith_user
|
||||
end
|
||||
|
||||
def test_put_denied_unless_authenticated_root
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user