@@ -98,7 +98,9 class IssueTest < ActiveSupport::TestCase | |||
|
98 | 98 | |
|
99 | 99 | def test_visible_scope_for_anonymous_with_own_issues_visibility |
|
100 | 100 | Role.anonymous.update_attribute :issues_visibility, 'own' |
|
101 |
Issue.create!(:project_id => 1, :tracker_id => 1, |
|
|
101 | Issue.create!(:project_id => 1, :tracker_id => 1, | |
|
102 | :author_id => User.anonymous.id, | |
|
103 | :subject => 'Issue by anonymous') | |
|
102 | 104 | |
|
103 | 105 | issues = Issue.visible(User.anonymous).all |
|
104 | 106 | assert issues.any? |
General Comments 0
You need to be logged in to leave comments.
Login now