# HG changeset patch # User nanaya # Date 1463079869 -32400 # Node ID 1d113463d15434f4ad20f24816134fca5e2888b9 # Parent b2991317d4d7a8232d07465297edd12ff53a23d4 Fix test deprecations diff -r b2991317d4d7 -r 1d113463d154 test/controllers/pastes_controller_test.rb --- a/test/controllers/pastes_controller_test.rb Fri May 13 04:01:51 2016 +0900 +++ b/test/controllers/pastes_controller_test.rb Fri May 13 04:04:29 2016 +0900 @@ -3,7 +3,7 @@ class PastesControllerTest < ActionController::TestCase test "creates paste from plaintext" do assert_difference("Paste.count", 1) do - post :create, "paste" => { "paste" => "here be paste" } + post :create, :params => { "paste" => { "paste" => "here be paste" } } end assert_response :redirect @@ -11,7 +11,7 @@ test "creates paste from gzip" do assert_difference("Paste.count", 1) do - post :create, "paste" => { "paste_gzip" => ActiveSupport::Gzip.compress("here be paste") } + post :create, :params => { "paste" => { "paste_gzip" => ActiveSupport::Gzip.compress("here be paste") } } end assert_response :redirect @@ -19,7 +19,7 @@ test "creates paste from base64 gzip" do assert_difference("Paste.count", 1) do - post :create, "paste" => { "paste_gzip_base64" => Base64.encode64(ActiveSupport::Gzip.compress("here be paste")) } + post :create, :params => { "paste" => { "paste_gzip_base64" => Base64.encode64(ActiveSupport::Gzip.compress("here be paste")) } } end assert_response :redirect @@ -27,14 +27,14 @@ test "filters spam" do assert_no_difference("Paste.count") do - post :create, "url1" => "http://hello.com", "paste" => { "paste" => "here be paste", "key" => "12341234" } + post :create, :params => { "url1" => "http://hello.com", "paste" => { "paste" => "here be paste", "key" => "12341234" } } end assert_response :success end test "shows paste" do - get :show, :id => pastes(:basic).id + get :show, :params => { :id => pastes(:basic).id } assert_response :success end