view test/controllers/tweets_controller_test.rb @ 60:122df25a3466

Always enable npm Current one was wrong since rails doesn't require non-default groups.
author nanaya <me@myconan.net>
date Mon, 16 Nov 2015 01:19:26 +0900
parents 8f68ca606099
children 257910c60eb3
line wrap: on
line source

require "test_helper"

class TweetsControllerTest < ActionController::TestCase
  test "should get show" do
    get :show, :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
    assert_response :success
  end

  test "redirect on @handle access" do
    get :show, :id => "edogawa_test", :format => :atom
    assert_redirected_to "/2791517370/edogawa_test"
  end

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