@@ -137,7 +137,7 class JournalTest < ActiveSupport::TestCase | |||
|
137 | 137 | user.reload |
|
138 | 138 | journals = Journal.visible(user).all |
|
139 | 139 | assert journals.empty? |
|
140 |
# User should see issues of projects for which |
|
|
140 | # User should see issues of projects for which user has view_issues permissions only | |
|
141 | 141 | Member.create!(:principal => user, :project_id => 1, :role_ids => [1]) |
|
142 | 142 | user.reload |
|
143 | 143 | journals = Journal.visible(user).all |
@@ -151,7 +151,7 class JournalTest < ActiveSupport::TestCase | |||
|
151 | 151 | assert user.projects.empty? |
|
152 | 152 | journals = Journal.visible(user).all |
|
153 | 153 | assert journals.any? |
|
154 |
# Admin should see issues on private projects that |
|
|
154 | # Admin should see issues on private projects that admin does not belong to | |
|
155 | 155 | assert journals.detect {|journal| !journal.issue.project.is_public?} |
|
156 | 156 | end |
|
157 | 157 |
General Comments 0
You need to be logged in to leave comments.
Login now