Parameter matcher which matches URIs with equivalent query strings.
@private
# File lib/mocha/parameter_matchers/query_string.rb, line 51 51: def explode(uri) 52: query_hash = (uri.query || '').split('&').inject({}){ |h, kv| h.merge(Hash[*kv.split('=')]) } 53: URI::Generic::COMPONENT.inject({}){ |h, k| h.merge(k => uri.__send__(k)) }.merge(:query => query_hash) 54: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.