From 04817186f63e9a55cd70133fea98c6ab5e6823bc Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Mon, 28 Jan 2013 16:54:49 +1100 Subject: Correctly recognise a fragment for html validation --- spec/support/validate_html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support/validate_html.rb') diff --git a/spec/support/validate_html.rb b/spec/support/validate_html.rb index 09c415936..93031ef46 100644 --- a/spec/support/validate_html.rb +++ b/spec/support/validate_html.rb @@ -38,7 +38,7 @@ if $tempfilecount.nil? alias :original_process :process def is_fragment # XXX there must be a better way of doing this! - return @request.query_parameters["action"] == "search_typeahead" + return @request.path_parameters["action"] == "search_typeahead" end def process(action, parameters = nil, session = nil, flash = nil, http_method = 'GET') self.original_process(action, parameters, session, flash, http_method) -- cgit v1.2.3