Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
259:8b75d00c77ba | 260:e2150dce4e90 |
---|---|
1 require "test_helper" | 1 require "test_helper" |
2 | 2 |
3 class TweetsControllerTest < ActionController::TestCase | 3 class TweetsControllerTest < ActionController::TestCase |
4 test "should get show" do | 4 test "should get show" do |
5 get :show, :params => { :id => "2791517370", :name => "edogawa_test", :format => :atom } | 5 get :show, params: { id: "2791517370", name: "edogawa_test", format: :atom } |
6 assert_response :success | 6 assert_response :success |
7 end | 7 end |
8 | 8 |
9 test "does not explode on empty timeline" do | 9 test "does not explode on empty timeline" do |
10 get :show, :params => { :id => "1519673756624379905", :name => "nanaya_empty2", :format => :atom } | 10 get :show, params: { id: "1519673756624379905", name: "nanaya_empty2", format: :atom } |
11 assert_response :success | 11 assert_response :success |
12 end | 12 end |
13 | 13 |
14 test "redirect on @handle access" do | 14 test "redirect on @handle access" do |
15 get :redirect, :params => { :name => "edogawa_test", :format => :atom } | 15 get :redirect, params: { name: "edogawa_test", format: :atom } |
16 assert_redirected_to "/2791517370/edogawa_test" | 16 assert_redirected_to "/2791517370/edogawa_test" |
17 end | 17 end |
18 | 18 |
19 test "should get index" do | 19 test "should get index" do |
20 get :index | 20 get :index |