diff test/controllers/tweets_controller_test.rb @ 260:e2150dce4e90

Rubocop (rails) time
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:59:09 +0900
parents e6c29d47192b
children
line wrap: on
line diff
--- a/test/controllers/tweets_controller_test.rb	Sun Dec 15 22:55:34 2024 +0900
+++ b/test/controllers/tweets_controller_test.rb	Sun Dec 15 22:59:09 2024 +0900
@@ -2,17 +2,17 @@
 
 class TweetsControllerTest < ActionController::TestCase
   test "should get show" do
-    get :show, :params => { :id => "2791517370", :name => "edogawa_test", :format => :atom }
+    get :show, params: { id: "2791517370", name: "edogawa_test", format: :atom }
     assert_response :success
   end
 
   test "does not explode on empty timeline" do
-    get :show, :params => { :id => "1519673756624379905", :name => "nanaya_empty2", :format => :atom }
+    get :show, params: { id: "1519673756624379905", name: "nanaya_empty2", format: :atom }
     assert_response :success
   end
 
   test "redirect on @handle access" do
-    get :redirect, :params => { :name => "edogawa_test", :format => :atom }
+    get :redirect, params: { name: "edogawa_test", format: :atom }
     assert_redirected_to "/2791517370/edogawa_test"
   end