code layout clean up of test_visible_scope_for_anonymous_with_own_issues_visibility at test/unit/issue_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7606 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
925e11ed16
commit
9f7690873a
|
@ -98,7 +98,9 @@ class IssueTest < ActiveSupport::TestCase
|
|||
|
||||
def test_visible_scope_for_anonymous_with_own_issues_visibility
|
||||
Role.anonymous.update_attribute :issues_visibility, 'own'
|
||||
Issue.create!(:project_id => 1, :tracker_id => 1, :author_id => User.anonymous.id, :subject => 'Issue by anonymous')
|
||||
Issue.create!(:project_id => 1, :tracker_id => 1,
|
||||
:author_id => User.anonymous.id,
|
||||
:subject => 'Issue by anonymous')
|
||||
|
||||
issues = Issue.visible(User.anonymous).all
|
||||
assert issues.any?
|
||||
|
|
Loading…
Reference in New Issue