mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
17 lines
No EOL
409 B
Ruby
17 lines
No EOL
409 B
Ruby
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
|
|
|
class FeedlistControllerTest < ActionController::TestCase
|
|
|
|
def test_get_index_when_not_logged_in
|
|
get :index
|
|
assert_redirected_to login_path
|
|
end
|
|
|
|
def test_get_index_by_logged_in_user
|
|
login_as :other_user
|
|
get :index
|
|
assert_response :success
|
|
assert_equal "TRACKS::Feeds", assigns['page_title']
|
|
end
|
|
|
|
end |