mirror of
https://github.com/redmine/redmine.git
synced 2026-06-23 18:32:03 +02:00
Refactor: merged error rendering methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4286 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -340,9 +340,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
|
||||
get :new, :project_id => 1
|
||||
assert_response 500
|
||||
assert_not_nil flash[:error]
|
||||
assert_tag :tag => 'div', :attributes => { :class => /error/ },
|
||||
:content => /No default issue/
|
||||
assert_error_tag :content => /No default issue/
|
||||
end
|
||||
|
||||
def test_get_new_with_no_tracker_should_display_an_error
|
||||
@@ -351,9 +349,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
|
||||
get :new, :project_id => 1
|
||||
assert_response 500
|
||||
assert_not_nil flash[:error]
|
||||
assert_tag :tag => 'div', :attributes => { :class => /error/ },
|
||||
:content => /No tracker/
|
||||
assert_error_tag :content => /No tracker/
|
||||
end
|
||||
|
||||
def test_update_new_form
|
||||
|
||||
Reference in New Issue
Block a user