@@ -267,7 +267,7 class IssueTest < ActiveSupport::TestCase | |||
|
267 | 267 | |
|
268 | 268 | def test_visible_scope_for_member |
|
269 | 269 | user = User.find(9) |
|
270 |
# User should see issues of projects for which |
|
|
270 | # User should see issues of projects for which user has view_issues permissions only | |
|
271 | 271 | Role.non_member.remove_permission!(:view_issues) |
|
272 | 272 | Member.create!(:principal => user, :project_id => 3, :role_ids => [2]) |
|
273 | 273 | issues = Issue.visible(user).all |
@@ -306,7 +306,7 class IssueTest < ActiveSupport::TestCase | |||
|
306 | 306 | assert user.projects.empty? |
|
307 | 307 | issues = Issue.visible(user).all |
|
308 | 308 | assert issues.any? |
|
309 |
# Admin should see issues on private projects that |
|
|
309 | # Admin should see issues on private projects that admin does not belong to | |
|
310 | 310 | assert issues.detect {|issue| !issue.project.is_public?} |
|
311 | 311 | # Admin should see private issues of other users |
|
312 | 312 | assert issues.detect {|issue| issue.is_private? && issue.author != user} |
General Comments 0
You need to be logged in to leave comments.
Login now