Sha256: d445d033d3b67175de7c19450d4476acc9d3d228167d1b4ed7c37640b2bbc356

Contents?: true

Size: 603 Bytes

Versions: 24

Compression:

Stored size: 603 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 '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

24 entries across 24 versions & 1 rubygems

Version Path
pusher-2.0.0 spec/spec_helper.rb
pusher-1.4.3 spec/spec_helper.rb
pusher-1.4.2 spec/spec_helper.rb
pusher-1.4.1 spec/spec_helper.rb
pusher-1.4.0 spec/spec_helper.rb
pusher-1.3.3 spec/spec_helper.rb
pusher-1.3.2 spec/spec_helper.rb
pusher-1.3.1 spec/spec_helper.rb
pusher-1.3.0 spec/spec_helper.rb
pusher-1.2.1 spec/spec_helper.rb
pusher-1.2.0 spec/spec_helper.rb
pusher-1.2.0.rc4 spec/spec_helper.rb
pusher-1.2.0.rc3 spec/spec_helper.rb
pusher-1.2.0.rc2 spec/spec_helper.rb
pusher-1.2.0.rc1 spec/spec_helper.rb
pusher-1.1.0 spec/spec_helper.rb
pusher-1.0.0 spec/spec_helper.rb
pusher-0.18.0 spec/spec_helper.rb
pusher-0.17.0 spec/spec_helper.rb
pusher-0.16.0 spec/spec_helper.rb