def test_visible_scope_for_member
user = User.find(9)
- # User should see issues of projects for which he has view_issues permissions only
+ # User should see issues of projects for which user has view_issues permissions only
Role.non_member.remove_permission!(:view_issues)
Member.create!(:principal => user, :project_id => 3, :role_ids => [2])
issues = Issue.visible(user).all
assert user.projects.empty?
issues = Issue.visible(user).all
assert issues.any?
- # Admin should see issues on private projects that he does not belong to
+ # Admin should see issues on private projects that admin does not belong to
assert issues.detect {|issue| !issue.project.is_public?}
# Admin should see private issues of other users
assert issues.detect {|issue| issue.is_private? && issue.author != user}