code layout clean up of test_preview_issue_notes at test/functional/previews_controller_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7533 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-09-25 10:46:44 +00:00
parent f21fd28917
commit 9c650540ba
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class PreviewsControllerTest < ActionController::TestCase
def test_preview_issue_notes def test_preview_issue_notes
@request.session[:user_id] = 2 @request.session[:user_id] = 2
post :issue, :project_id => '1', :id => 1, :issue => {:description => Issue.find(1).description}, :notes => 'Foo' post :issue, :project_id => '1', :id => 1,
:issue => {:description => Issue.find(1).description},
:notes => 'Foo'
assert_response :success assert_response :success
assert_template 'preview' assert_template 'preview'
assert_not_nil assigns(:notes) assert_not_nil assigns(:notes)