@@ -875,7 +875,6 class UserTest < ActiveSupport::TestCase | |||||
875 |
|
875 | |||
876 | def test_roles_for_project_with_non_member_with_private_project_should_return_no_roles |
|
876 | def test_roles_for_project_with_non_member_with_private_project_should_return_no_roles | |
877 | Project.find(1).update_attribute :is_public, false |
|
877 | Project.find(1).update_attribute :is_public, false | |
878 |
|
||||
879 | roles = User.find(8).roles_for_project(Project.find(1)) |
|
878 | roles = User.find(8).roles_for_project(Project.find(1)) | |
880 | assert_equal [], roles.map(&:name) |
|
879 | assert_equal [], roles.map(&:name) | |
881 | end |
|
880 | end | |
@@ -903,7 +902,6 class UserTest < ActiveSupport::TestCase | |||||
903 |
|
902 | |||
904 | def test_roles_for_project_with_anonymous_with_private_project_should_return_no_roles |
|
903 | def test_roles_for_project_with_anonymous_with_private_project_should_return_no_roles | |
905 | Project.find(1).update_attribute :is_public, false |
|
904 | Project.find(1).update_attribute :is_public, false | |
906 |
|
||||
907 | roles = User.anonymous.roles_for_project(Project.find(1)) |
|
905 | roles = User.anonymous.roles_for_project(Project.find(1)) | |
908 | assert_equal [], roles.map(&:name) |
|
906 | assert_equal [], roles.map(&:name) | |
909 | end |
|
907 | end |
General Comments 0
You need to be logged in to leave comments.
Login now