From: Andy Allan Date: Thu, 6 Oct 2016 08:04:06 +0000 (+0100) Subject: Update site_controller_test to use note and note_comment factories. X-Git-Tag: live~3733^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/886dc00ad42fd1af819bbf399f9e939fd34702df?hp=5037e016cd4d769b16f5908f43025027b55f0593 Update site_controller_test to use note and note_comment factories. --- diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index 453af4550..f385ccff0 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -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