Re-enable issue reassigning.
[rails.git] / test / system / issues_test.rb
index ab3e619c908c4c2a3346783d1b61d71fd5c9bddb..5ff1a529425c74c349247a93d73aa47d695fb270 100644 (file)
@@ -63,4 +63,19 @@ class IssuesTest < ApplicationSystemTestCase
     issue.reload
     assert_equal issue.comments.first.body, "test comment"
   end
     issue.reload
     assert_equal issue.comments.first.body, "test comment"
   end
+
+  def test_reassign_issue
+    issue = create(:issue)
+    assert_equal "administrator", issue.assigned_role
+    sign_in_as(create(:administrator_user))
+
+    visit issue_path(issue)
+
+    fill_in :issue_comment_body, :with => "reassigning to moderators"
+    check :reassign
+    click_on "Submit"
+
+    issue.reload
+    assert_equal "moderator", issue.assigned_role
+  end
 end
 end