From 886dc00ad42fd1af819bbf399f9e939fd34702df Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 6 Oct 2016 09:04:06 +0100 Subject: [PATCH] Update site_controller_test to use note and note_comment factories. --- test/controllers/site_controller_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.2