]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/site_controller_test.rb
Update notes_controller_test to use note and note_comment factories
[rails.git] / test / controllers / site_controller_test.rb
index 453af4550bb25fa58bdba42d313ebf700ccf0b9f..f385ccff0bfe601d659cc4faee20da99c06c4c7a 100644 (file)
@@ -265,7 +265,8 @@ class SiteControllerTest < ActionController::TestCase
   # Test editing a specific note
   def test_edit_with_note
     user = users(:public_user)
-    note = notes(:open_note)
+    note = create(:note)
+    create(:note_comment, :author_id => user.id)
 
     get :edit, { :note => note.id }, { :user => user.id }
     assert_response :success