diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-23 11:07:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-23 11:07:04 +0000 |
commit | 7824eca77561dea52960b3d094389bd4e85eeccf (patch) | |
tree | b19e031644b9d9f67db379b20ff2eae9b08ff8e4 /test/test_helper.rb | |
parent | eea456ed84d159289bdc8826439923d365816fa8 (diff) | |
download | redmine-7824eca77561dea52960b3d094389bd4e85eeccf.tar.gz redmine-7824eca77561dea52960b3d094389bd4e85eeccf.zip |
Refactor: merged error rendering methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4286 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 9a2761021..eea1a03b5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -113,11 +113,15 @@ class ActiveSupport::TestCase def self.repository_configured?(vendor) File.directory?(repository_path(vendor)) end + + def assert_error_tag(options={}) + assert_tag({:tag => 'p', :attributes => { :id => 'errorExplanation' }}.merge(options)) + end # Shoulda macros def self.should_render_404 should_respond_with :not_found - should_render_template 'common/404' + should_render_template 'common/error' end def self.should_have_before_filter(expected_method, options = {}) |