aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-03-06 15:14:08 -0800
committerLouise Crow <louise.crow@gmail.com>2013-03-06 15:14:08 -0800
commit455a1f07f3099d1d94fff2a7efcf99fb8fd6841d (patch)
treed2b6603b99104a99443d230f01115b0626050c91 /spec/spec_helper.rb
parentbda2645de69bfee361280c4bfe3dc1bef8aa330d (diff)
parentb8388eeb637476cfc2e9ec9ee791cab341e76f95 (diff)
Merge remote-tracking branch 'openaustralia_github/merge_adminbootstrap_theme' into develop
Diffstat (limited to 'spec/spec_helper.rb')
-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?