make search and feedlist pass

This commit is contained in:
Reinier Balt 2012-05-03 23:23:31 +02:00
parent 28b7df87a8
commit 7c935652fb
10 changed files with 40 additions and 19 deletions

View file

@ -13,5 +13,17 @@ class FeedlistControllerTest < ActionController::TestCase
assert_response :success
assert_equal "TRACKS::Feeds", assigns['page_title']
end
def test_get_feeds_for_context_using_xhr
login_as(:admin_user)
xhr :get, :get_feeds_for_context, :context_id => contexts(:errand).id
assert_response 200
end
def test_get_feeds_for_project_using_xhr
login_as(:admin_user)
xhr :get, :get_feeds_for_project, :project_id => projects(:timemachine).id
assert_response 200
end
end