Enforce restrictions on issue visibility properly

This commit is contained in:
Tom Hughes 2020-03-01 19:08:40 +00:00
parent 75d1893343
commit 06122fc090
3 changed files with 131 additions and 23 deletions

View file

@ -72,7 +72,7 @@ class IssuesTest < ApplicationSystemTestCase
end
def test_commenting
issue = create(:issue)
issue = create(:issue, :assigned_role => "moderator")
sign_in_as(create(:moderator_user))
visit issue_path(issue)