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

Version Path
rest-graph-1.4.2 example/rails/test/test_helper.rb
rest-graph-1.4.1 example/rails/test/test_helper.rb
rest-graph-1.4.0 example/rails/test/test_helper.rb
rest-graph-1.3.0 example/rails/test/test_helper.rb