diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-04-24 16:51:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-04-24 16:51:07 +0000 |
commit | a7e32302a6c91c56e6511d1a44a64db07f53221d (patch) | |
tree | ae67ac4c2683b08b2b993dab23a6976c09bd0272 /test/functional/boards_controller_test.rb | |
parent | 6385217be04b2468f25e12700a39a3c6c6f0f832 (diff) | |
download | redmine-a7e32302a6c91c56e6511d1a44a64db07f53221d.tar.gz redmine-a7e32302a6c91c56e6511d1a44a64db07f53221d.zip |
Adds single forum atom feed (#3181).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2682 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/boards_controller_test.rb')
-rw-r--r-- | test/functional/boards_controller_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb index b9df5517f..01db0f94b 100644 --- a/test/functional/boards_controller_test.rb +++ b/test/functional/boards_controller_test.rb @@ -84,6 +84,10 @@ class BoardsControllerTest < Test::Unit::TestCase {:method => :get, :path => '/projects/world_domination/boards/44'}, :controller => 'boards', :action => 'show', :id => '44', :project_id => 'world_domination' ) + assert_routing( + {:method => :get, :path => '/projects/world_domination/boards/44.atom'}, + :controller => 'boards', :action => 'show', :id => '44', :project_id => 'world_domination', :format => 'atom' + ) end def test_show @@ -95,6 +99,15 @@ class BoardsControllerTest < Test::Unit::TestCase assert_not_nil assigns(:topics) end + def test_show_atom + get :show, :project_id => 1, :id => 1, :format => 'atom' + assert_response :success + assert_template 'common/feed.atom' + assert_not_nil assigns(:board) + assert_not_nil assigns(:project) + assert_not_nil assigns(:messages) + end + def test_edit_routing assert_routing( {:method => :get, :path => '/projects/world_domination/boards/44/edit'}, |