Links, mainly...
This commit is contained in:
parent
fd42a3f173
commit
21ab02d647
69 changed files with 2258 additions and 155 deletions
|
|
@ -17,7 +17,7 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest
|
|||
|
||||
test "should create report" do
|
||||
assert_difference("Report.count") do
|
||||
post reports_url, params: { report: { comment: @report.comment, name: @report.name } }
|
||||
post reports_url, params: { report: { comment_html: @report.comment_html, name: @report.name } }
|
||||
end
|
||||
|
||||
assert_redirected_to report_url(Report.last)
|
||||
|
|
@ -34,7 +34,7 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
test "should update report" do
|
||||
patch report_url(@report), params: { report: { comment: @report.comment, name: @report.name } }
|
||||
patch report_url(@report), params: { report: { comment_html: @report.comment_html, name: @report.name } }
|
||||
assert_redirected_to report_url(@report)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue