view test/controllers/tweets_controller_test.rb @ 227:e8eb5caae9c1

Use a different account
author nanaya <me@nanaya.pro>
date Sun, 03 Apr 2022 21:09:58 +0900
parents 2b0ba614fc02
children e6c29d47192b
line wrap: on
line source

require "test_helper"

class TweetsControllerTest < ActionController::TestCase
  test "should get show" do
    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 => "1510589762410668032", :name => "nanaya_empty", :format => :atom }
    assert_response :success
  end

  test "redirect on @handle access" do
    get :redirect, :params => { :name => "edogawa_test", :format => :atom }
    assert_redirected_to "/2791517370/edogawa_test"
  end

  test "should get index" do
    get :index
    assert_response :success
  end
end