diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-05 12:38:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-05 12:38:48 +0000 |
commit | c084ef509f114d0d32891fc58d45817e6e11fa4e (patch) | |
tree | 4f658caf8daa7437836b912981df024efb0f133a /test/functional/activities_controller_test.rb | |
parent | 9dae5771bc8da2d43359931ea62138d8ed150902 (diff) | |
download | redmine-c084ef509f114d0d32891fc58d45817e6e11fa4e.tar.gz redmine-c084ef509f114d0d32891fc58d45817e6e11fa4e.zip |
Adds a few functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13718 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/activities_controller_test.rb')
-rw-r--r-- | test/functional/activities_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb index 0c0fbb268..2a9af2d95 100644 --- a/test/functional/activities_controller_test.rb +++ b/test/functional/activities_controller_test.rb @@ -136,6 +136,14 @@ class ActivitiesControllerTest < ActionController::TestCase end end + def test_index_atom_feed_with_user + get :index, :user_id => 2, :format => 'atom' + + assert_response :success + assert_template 'common/feed' + assert_select 'title', :text => "Redmine: #{User.find(2).name}" + end + def test_index_should_show_private_notes_with_permission_only journal = Journal.create!(:journalized => Issue.find(2), :notes => 'Private notes with searchkeyword', :private_notes => true) @request.session[:user_id] = 2 |