mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-17 06:35:28 +01:00
make search and feedlist pass
This commit is contained in:
parent
28b7df87a8
commit
7c935652fb
10 changed files with 40 additions and 19 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue