Update site_controller_test to use note and note_comment factories.

This commit is contained in:
Andy Allan 2016-10-06 09:04:06 +01:00
parent 5037e016cd
commit 886dc00ad4

View file

@ -265,7 +265,8 @@ class SiteControllerTest < ActionController::TestCase
# Test editing a specific note # Test editing a specific note
def test_edit_with_note def test_edit_with_note
user = users(:public_user) 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 } get :edit, { :note => note.id }, { :user => user.id }
assert_response :success assert_response :success