Mercurial > hg > soundsoftware-site
diff test/functional/previews_controller_test.rb @ 51:371eac10df0b live
* Merge from "cannam" branch. This includes update to Redmine trunk, plus welcome/tip-of-the-day from luisf branch.
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 12:20:08 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b |
line wrap: on
line diff
--- a/test/functional/previews_controller_test.rb Thu Oct 21 11:19:14 2010 +0100 +++ b/test/functional/previews_controller_test.rb Wed Nov 24 12:20:08 2010 +0000 @@ -19,4 +19,14 @@ assert_not_nil assigns(:notes) end + def test_news + get :news, :project_id => 1, + :news => {:title => '', + :description => 'News description', + :summary => ''} + assert_response :success + assert_template 'common/_preview' + assert_tag :tag => 'fieldset', :attributes => { :class => 'preview' }, + :content => /News description/ + end end