]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/issue_test.rb
Merge branch 'master' into moderation
[rails.git] / test / models / issue_test.rb
index 49649eede79c5279f9dad1e1d0afdf39d7d1d920..5af3779b574ba3a1a24cbe855d00d94d20410185 100644 (file)
@@ -25,7 +25,7 @@ class IssueTest < ActiveSupport::TestCase
   def test_default_assigned_role
     create(:language, :code => "en")
     diary_entry = create(:diary_entry)
-    changeset = create(:changeset)
+    note = create(:note_with_comments)
 
     issue = Issue.new
     issue.reportable = diary_entry
@@ -33,7 +33,7 @@ class IssueTest < ActiveSupport::TestCase
     assert_equal "administrator", issue.assigned_role
 
     issue = Issue.new
-    issue.reportable = changeset
+    issue.reportable = note
     issue.save!
     assert_equal "moderator", issue.assigned_role