Sha256: 25ad553cb4342f3fc9651004b26649a4133ed4742a7433d7e94812bc23b23203

Contents?: true

Size: 549 Bytes

Versions: 38

Compression:

Stored size: 549 Bytes

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'although not required, it is recommended that you use bundler when running the tests'
end

require 'rspec'
require 'rspec/autorun'
require 'em-http' # As of webmock 1.4.0, em-http must be loaded first
require 'webmock/rspec'

require 'pusher'
require 'eventmachine'

RSpec.configure do |config|
  config.before(:each) do
    WebMock.reset!
    WebMock.disable_net_connect!
  end
end

def hmac(key, data)
  digest = OpenSSL::Digest::SHA256.new
  OpenSSL::HMAC.hexdigest(digest, key, data)
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
scout-5.9.13 vendor/pusher/spec/spec_helper.rb
scout-5.9.12 vendor/pusher/spec/spec_helper.rb
scout-5.9.11 vendor/pusher/spec/spec_helper.rb
scout-5.9.10.pre vendor/pusher/spec/spec_helper.rb
scout-5.9.8 vendor/pusher/spec/spec_helper.rb
scout-5.9.7.2.pre vendor/pusher/spec/spec_helper.rb
scout-5.9.8.pre vendor/pusher/spec/spec_helper.rb
scout-5.9.7.1 vendor/pusher/spec/spec_helper.rb
scout-5.9.7.pre vendor/pusher/spec/spec_helper.rb
scout-5.9.5 vendor/pusher/spec/spec_helper.rb
scout-5.9.4 vendor/pusher/spec/spec_helper.rb
scout-5.9.4.pre vendor/pusher/spec/spec_helper.rb
scout-5.9.3 vendor/pusher/spec/spec_helper.rb
scout-5.9.2 vendor/pusher/spec/spec_helper.rb
scout-5.9.1 vendor/pusher/spec/spec_helper.rb
scout-5.9.1.pre vendor/pusher/spec/spec_helper.rb
scout-5.9.0 vendor/pusher/spec/spec_helper.rb
scout-5.9.0.pre vendor/pusher/spec/spec_helper.rb
scout-5.8.9 vendor/pusher/spec/spec_helper.rb
scout-5.8.8 vendor/pusher/spec/spec_helper.rb