##// END OF EJS Templates
code layout clean up of test_visible_scope_for_anonymous_with_own_issues_visibility at test/unit/issue_test.rb...
Toshi MARUYAMA -
r7486:9f7690873a9e
parent child
Show More
@@ -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, :author_id => User.anonymous.id, :subject => 'Issue by anonymous')
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