##// END OF EJS Templates
gender neutral source comment at test/unit/journal_test.rb...
Toshi MARUYAMA -
r11763:4545b906b4c5
parent child
Show More
@@ -137,7 +137,7 class JournalTest < ActiveSupport::TestCase
137 user.reload
137 user.reload
138 journals = Journal.visible(user).all
138 journals = Journal.visible(user).all
139 assert journals.empty?
139 assert journals.empty?
140 # User should see issues of projects for which he has view_issues permissions only
140 # User should see issues of projects for which user has view_issues permissions only
141 Member.create!(:principal => user, :project_id => 1, :role_ids => [1])
141 Member.create!(:principal => user, :project_id => 1, :role_ids => [1])
142 user.reload
142 user.reload
143 journals = Journal.visible(user).all
143 journals = Journal.visible(user).all
@@ -151,7 +151,7 class JournalTest < ActiveSupport::TestCase
151 assert user.projects.empty?
151 assert user.projects.empty?
152 journals = Journal.visible(user).all
152 journals = Journal.visible(user).all
153 assert journals.any?
153 assert journals.any?
154 # Admin should see issues on private projects that he does not belong to
154 # Admin should see issues on private projects that admin does not belong to
155 assert journals.detect {|journal| !journal.issue.project.is_public?}
155 assert journals.detect {|journal| !journal.issue.project.is_public?}
156 end
156 end
157
157
General Comments 0
You need to be logged in to leave comments. Login now