tracks/test/functional/feedlist_controller_test.rb
2012-04-30 13:56:40 +02:00

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