Ruby: actiondispatch add hash arg testcase

This commit is contained in:
Alex Ford
2024-05-31 15:08:35 +01:00
parent 22858249f9
commit 0473655752
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ Rails.application.routes.draw do
post "flag", to: :flag
end
post "upvote", to: "posts#upvote"
# post "downvote" => "posts#downvote"
post "downvote" => "posts#downvote"
end
if Rails.env.test?

View File

@@ -8,6 +8,6 @@ class PostsController < ApplicationController
def upvote
end
# def downvote
# end
def downvote
end
end