diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-28 16:54:49 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-28 16:54:49 +1100 |
commit | 04817186f63e9a55cd70133fea98c6ab5e6823bc (patch) | |
tree | 411711bd251cac4e0ae4015340d09c9b45eb8364 /spec/support | |
parent | bc0ce470ade27fed5376e983d72e9f495d4c0405 (diff) |
Correctly recognise a fragment for html validation
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/validate_html.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |