gender neutral source comment at test/unit/journal_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11993 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b38de1f5e2
commit
4545b906b4
|
@ -137,7 +137,7 @@ class JournalTest < ActiveSupport::TestCase
|
||||||
user.reload
|
user.reload
|
||||||
journals = Journal.visible(user).all
|
journals = Journal.visible(user).all
|
||||||
assert journals.empty?
|
assert journals.empty?
|
||||||
# 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
|
||||||
Member.create!(:principal => user, :project_id => 1, :role_ids => [1])
|
Member.create!(:principal => user, :project_id => 1, :role_ids => [1])
|
||||||
user.reload
|
user.reload
|
||||||
journals = Journal.visible(user).all
|
journals = Journal.visible(user).all
|
||||||
|
@ -151,7 +151,7 @@ class JournalTest < ActiveSupport::TestCase
|
||||||
assert user.projects.empty?
|
assert user.projects.empty?
|
||||||
journals = Journal.visible(user).all
|
journals = Journal.visible(user).all
|
||||||
assert journals.any?
|
assert journals.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 journals.detect {|journal| !journal.issue.project.is_public?}
|
assert journals.detect {|journal| !journal.issue.project.is_public?}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue