start of iteration 2
This commit is contained in:
parent
9fb87a74ce
commit
729ed13521
75 changed files with 705 additions and 170 deletions
|
|
@ -35,7 +35,7 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest
|
|||
|
||||
test "should create report" do
|
||||
assert_difference("Report.count") do
|
||||
post reports_url, params: { report: { comment_html: @report.comment_html, name: @report.name } }
|
||||
post reports_url, params: { report: { comment: @report.comment, name: @report.name } }
|
||||
end
|
||||
|
||||
assert_redirected_to report_url(Report.last)
|
||||
|
|
@ -52,7 +52,7 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
test "should update report" do
|
||||
patch report_url(@report), params: { report: { comment_html: @report.comment_html, name: @report.name } }
|
||||
patch report_url(@report), params: { report: { comment: @report.comment, name: @report.name } }
|
||||
assert_redirected_to report_url(@report)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue