Rename 'issue_type' to 'assigned_role', set defaults in the model and test.
[rails.git] / test / system / issues_test.rb
index 9eb2fbbcb27925d047674fe55395dba573474b2f..ab3e619c908c4c2a3346783d1b61d71fd5c9bddb 100644 (file)
@@ -17,7 +17,7 @@ class IssuesTest < ApplicationSystemTestCase
 
   def test_view_issues
     sign_in_as(create(:moderator_user))
-    issues = create_list(:issue, 3, :issue_type => "moderator")
+    issues = create_list(:issue, 3, :assigned_role => "moderator")
 
     visit issues_path
     assert page.has_content?(issues.first.reported_user.display_name)
@@ -26,7 +26,7 @@ class IssuesTest < ApplicationSystemTestCase
   def test_search_issues_by_user
     good_user = create(:user)
     bad_user = create(:user)
-    create(:issue, :reportable => bad_user, :reported_user => bad_user, :issue_type => "administrator")
+    create(:issue, :reportable => bad_user, :reported_user => bad_user, :assigned_role => "administrator")
 
     sign_in_as(create(:administrator_user))