2011-10-09 20:30:48 +02:00
|
|
|
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
class FeedlistControllerTest < ActionController::TestCase
|
2007-03-30 04:36:52 +00:00
|
|
|
|
|
|
|
|
def test_get_index_when_not_logged_in
|
|
|
|
|
get :index
|
2012-04-24 20:47:07 +02:00
|
|
|
assert_redirected_to login_path
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def test_get_index_by_logged_in_user
|
2007-10-09 05:17:28 +00:00
|
|
|
login_as :other_user
|
2007-03-30 04:36:52 +00:00
|
|
|
get :index
|
|
|
|
|
assert_response :success
|
2012-04-24 20:47:07 +02:00
|
|
|
assert_equal "TRACKS::Feeds", assigns['page_title']
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
|
2012-04-24 20:47:07 +02:00
|
|
|
end
|