summaryrefslogtreecommitdiffstats
path: root/test/functional/previews_controller_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-24 16:26:46 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-24 16:26:46 +0000
commitdeed1b949d6340c87a2cee9cca411e70d908eaf4 (patch)
tree7b6f81ef08306483f0490bb16ea00f9a7da4d693 /test/functional/previews_controller_test.rb
parent20305418f475abced81843a847d1192a74647f69 (diff)
downloadredmine-deed1b949d6340c87a2cee9cca411e70d908eaf4.tar.gz
redmine-deed1b949d6340c87a2cee9cca411e70d908eaf4.zip
Refactor: move NewsController#preview to PreviewsController#news
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4174 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/previews_controller_test.rb')
-rw-r--r--test/functional/previews_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index 63456d1d0..4140f1428 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -19,4 +19,14 @@ class PreviewsControllerTest < ActionController::TestCase
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