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

Version Path
rest-graph-1.7.0 example/rails2/test/test_helper.rb
rest-graph-1.6.0 example/rails2/test/test_helper.rb
rest-graph-1.5.0 example/rails2/test/test_helper.rb
rest-graph-1.4.6 example/rails/test/test_helper.rb
rest-graph-1.4.5 example/rails/test/test_helper.rb
rest-graph-1.4.4 example/rails/test/test_helper.rb
rest-graph-1.4.3 example/rails/test/test_helper.rb