Refactor: move NewsController#preview to PreviewsController#news
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4174 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user