@@ -52,7 +52,7 @@ class DocumentsIntegrationTest < ActionDispatch::IntegrationTest
5252
5353 # standard test
5454 test "create" do
55- post '/documents' , document : { title : "New things" , content : "Doing them" }
55+ post '/documents' , params : { document : { title : "New things" , content : "Doing them" } }
5656
5757 document = Document . last
5858 assert_equal 'New things' , document . title
@@ -62,7 +62,7 @@ class DocumentsIntegrationTest < ActionDispatch::IntegrationTest
6262 # ruby -I lib:test test/integration/documents_integration_test.rb -n test_create_rp
6363 test "create rp" do
6464 result = RubyProf . profile do
65- post '/documents' , document : { title : "New things" , content : "Doing them" }
65+ post '/documents' , params : { document : { title : "New things" , content : "Doing them" } }
6666
6767 document = Document . last
6868 assert_equal 'New things' , document . title
@@ -81,7 +81,7 @@ class DocumentsIntegrationTest < ActionDispatch::IntegrationTest
8181 test "create sp" do
8282 StackProf . run ( mode : :cpu , out : 'graphs/rails_only/create_integration_stackprof_cpu.dump' ) do
8383 3000 . times do
84- post '/documents' , document : { title : "New things" , content : "Doing them" }
84+ post '/documents' , params : { document : { title : "New things" , content : "Doing them" } }
8585
8686 document = Document . last
8787 assert_equal 'New things' , document . title
@@ -94,7 +94,7 @@ class DocumentsIntegrationTest < ActionDispatch::IntegrationTest
9494 test "create sp wall" do
9595 StackProf . run ( mode : :wall , out : 'graphs/rails_only/create_integration_stackprof_wall.dump' ) do
9696 3000 . times do
97- post '/documents' , document : { title : "New things" , content : "Doing them" }
97+ post '/documents' , params : { document : { title : "New things" , content : "Doing them" } }
9898
9999 document = Document . last
100100 assert_equal 'New things' , document . title
@@ -106,7 +106,7 @@ class DocumentsIntegrationTest < ActionDispatch::IntegrationTest
106106 # ruby -I lib:test test/integration/documents_integration_test.rb -n test_create_flame
107107 test "create flame" do
108108 Flamegraph . generate ( "graphs/rails_only/create_integration_flamegraph.html" ) do
109- post '/documents' , document : { title : "New things" , content : "Doing them" }
109+ post '/documents' , params : { document : { title : "New things" , content : "Doing them" } }
110110
111111 document = Document . last
112112 assert_equal 'New things' , document . title
0 commit comments