Links, mainly...
This commit is contained in:
parent
fd42a3f173
commit
21ab02d647
69 changed files with 2258 additions and 155 deletions
|
|
@ -19,7 +19,7 @@ class ElementsControllerTest < ActionDispatch::IntegrationTest
|
|||
test 'should create element' do
|
||||
assert_difference('Element.count') do
|
||||
post elements_url,
|
||||
params: { element: { description: @element.description, path: @element.path, report_id: @element.report_id,
|
||||
params: { element: { description_html: @element.description_html, path: @element.path, report_id: @element.report_id,
|
||||
title: @element.title, checklist_id: @checklist.id } }
|
||||
end
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ class ElementsControllerTest < ActionDispatch::IntegrationTest
|
|||
|
||||
test 'should update element' do
|
||||
patch element_url(@element),
|
||||
params: { element: { description: @element.description, path: @element.path, report_id: @element.report_id,
|
||||
params: { element: { description_html: @element.description_html, path: @element.path, report_id: @element.report_id,
|
||||
title: @element.title } }
|
||||
assert_redirected_to element_url(@element)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue