Update site_controller_test to use note and note_comment factories.
This commit is contained in:
parent
5037e016cd
commit
886dc00ad4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue