Sha256: 2719938d7a9e7d7943b3f2f9f0681773f8b2c87d23f236e53fb3104c54eb7175
Contents?: true
Size: 325 Bytes
Versions: 4
Compression:
Stored size: 325 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class ActiveSupport::TestCase def normalize_query query '?' + query[1..-1].split('&').sort.join('&') end def normalize_url url url.sub(/\?.+/){ |query| normalize_query(query) } end end
Version data entries
4 entries across 4 versions & 1 rubygems