diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-17 20:01:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-17 20:01:15 +0000 |
commit | 062a2d6f5d6ebdc74d5586cb151fd07a219b1b31 (patch) | |
tree | dd1ed26471c73532688ec74ed72e1eaeeb8a47f7 /test/functional/timelog_controller_test.rb | |
parent | d991e46f122d084c9465073256e7750b24898d49 (diff) | |
download | redmine-062a2d6f5d6ebdc74d5586cb151fd07a219b1b31.tar.gz redmine-062a2d6f5d6ebdc74d5586cb151fd07a219b1b31.zip |
Adds atom feed on time entries details (#1479).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1560 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index c8b47cf8d..7b4622daa 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -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 |