Adds atom feed on time entries details (#1479).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1560 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-06-17 20:01:15 +00:00
parent d991e46f12
commit 062a2d6f5d
4 changed files with 26 additions and 0 deletions

View File

@@ -210,6 +210,14 @@ class TimelogControllerTest < Test::Unit::TestCase
assert_equal '2007-04-22'.to_date, assigns(:to)
end
def test_details_atom_feed
get :details, :project_id => 1, :format => 'atom'
assert_response :success
assert_equal 'application/atom+xml', @response.content_type
assert_not_nil assigns(:items)
assert assigns(:items).first.is_a?(TimeEntry)
end
def test_details_csv_export
get :details, :project_id => 1, :format => 'csv'
assert_response :success