aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-19 14:57:35 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-25 16:26:53 +1100
commit35284ea035ce27795fa56028d556905ec172a2af (patch)
treeeb0c0b539ff468f0d2d4db6c112c907b1700448c
parent5f7d17bc2128d7de3749f65d3e9168e2fcc1a478 (diff)
Don't try to html validate the new default admin interface. It won't work
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 561a75da6..b760c6385 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -222,6 +222,9 @@ if $tempfilecount.nil?
end
def process(action, parameters = nil, session = nil, flash = nil, http_method = 'GET')
self.original_process(action, parameters, session, flash, http_method)
+ # Don't try validating the admin interface.
+ # TODO: Make the admin interface valid html5
+ return if @request.parameters["controller"] =~ /admin_/
# don't validate auto-generated HTML
return if @request.query_parameters["action"] == "get_attachment_as_html"
# XXX Is there a better way to check this than calling a private method?