Skip to content

Commit 0473655

Browse files
committed
Ruby: actiondispatch add hash arg testcase
1 parent 2285824 commit 0473655

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ruby/ql/test/library-tests/frameworks/action_dispatch/app/config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
post "flag", to: :flag
66
end
77
post "upvote", to: "posts#upvote"
8-
# post "downvote" => "posts#downvote"
8+
post "downvote" => "posts#downvote"
99
end
1010

1111
if Rails.env.test?

ruby/ql/test/library-tests/frameworks/action_dispatch/app/controllers/posts_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ def show
88
def upvote
99
end
1010

11-
# def downvote
12-
# end
11+
def downvote
12+
end
1313
end

0 commit comments

Comments
 (0)