summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/boards_controller_test.rb13
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'},