Sha256: ab856f26e49cb3b1ec141cc97d3a41f4abb9db625fe3a67e7dea4e6727112492

Contents?: true

Size: 627 Bytes

Versions: 5

Compression:

Stored size: 627 Bytes

Contents

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

ENV['PUSHER_URL']= 'http://some:secret@api.secret.pusherapp.com:441/apps/54'

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

5 entries across 5 versions & 1 rubygems

Version Path
pusher-0.14.5 spec/spec_helper.rb
pusher-0.14.4 spec/spec_helper.rb
pusher-0.14.2 spec/spec_helper.rb
pusher-0.14.1 spec/spec_helper.rb
pusher-0.14.0 spec/spec_helper.rb