Commit 58911d1d3b6af9864048468d44fd37b47ecd863c
1 parent
ffbfbfa3
Exists in
master
and in
29 other branches
ActionItem484: add test to fail when create event
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2089 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
test/functional/cms_controller_test.rb
@@ -464,4 +464,15 @@ class CmsControllerTest < Test::Unit::TestCase | @@ -464,4 +464,15 @@ class CmsControllerTest < Test::Unit::TestCase | ||
464 | end | 464 | end |
465 | end | 465 | end |
466 | 466 | ||
467 | + should 'be able to create a new event document' do | ||
468 | + get :new, :type => 'Event', :profile => profile.identifier | ||
469 | + assert_response :success | ||
470 | + #assert_template 'select_article_type' | ||
471 | + | ||
472 | + ## TODO add more types here !! | ||
473 | + #[ TinyMceArticle, TextileArticle ].each do |item| | ||
474 | + # assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=#{item.name}" } | ||
475 | + #end | ||
476 | + end | ||
477 | + | ||
467 | end | 478 | end |