Sha256: 3d1a3be61fda74f174fe397d9595631116288c7394563e2bb9acb043ea11f1aa

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

require 'rest-core/client/facebook'

# need to require this before webmock in order to enable mocking in em-http

require 'rr'
require 'webmock'
require 'bacon'

# for testing lighten (serialization)
require 'yaml'

include RR::Adapters::RRMethods
include WebMock::API
WebMock.disable_net_connect!
Bacon.summary_on_exit

module TestHelper
  module_function
  def normalize_query query
    '?' + query[1..-1].split('&').sort.join('&')
  end

  def normalize_url url
    url.sub(/\?.+/){ |query| TestHelper.normalize_query(query) }
  end
end

module Kernel
  def eq? rhs
    self == rhs
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rest-core-0.3.0.pre.2 lib/rest-core/test.rb
rest-core-0.3.0.pre.1 lib/rest-core/test.rb
rest-core-0.3.0.pre.0 lib/rest-core/test.rb