Sha256: 7751d3fd2b1c30e50789afaac7c24a897306405808f6b2051819c4e5b60af777
Contents?: true
Size: 326 Bytes
Versions: 7
Compression:
Stored size: 326 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
7 entries across 7 versions & 1 rubygems