diff test/controllers/tweets_controller_test.rb @ 72:257910c60eb3

Rails 5 \o/
author nanaya <me@myconan.net>
date Fri, 13 May 2016 04:32:21 +0900
parents 8f68ca606099
children 2b0ba614fc02
line wrap: on
line diff
--- a/test/controllers/tweets_controller_test.rb	Tue Mar 01 16:34:29 2016 +0900
+++ b/test/controllers/tweets_controller_test.rb	Fri May 13 04:32:21 2016 +0900
@@ -2,17 +2,17 @@
 
 class TweetsControllerTest < ActionController::TestCase
   test "should get show" do
-    get :show, :id => "2791517370/edogawa_test", :format => :atom
+    get :show, :params => { :id => "2791517370/edogawa_test", :format => :atom }
     assert_response :success
   end
 
   test "does not explode on empty timeline" do
-    get :show, :id => "3168319146/nanaya_t_empty", :format => :atom
+    get :show, :params => { :id => "3168319146/nanaya_t_empty", :format => :atom }
     assert_response :success
   end
 
   test "redirect on @handle access" do
-    get :show, :id => "edogawa_test", :format => :atom
+    get :show, :params => { :id => "edogawa_test", :format => :atom }
     assert_redirected_to "/2791517370/edogawa_test"
   end