require 'rubygems' # Set up gems listed in the Gemfile. gemfile = File.expand_path('../Gemfile', File.dirname(__FILE__)) begin ENV['BUNDLE_GEMFILE'] = gemfile require 'bundler' Bundler.setup rescue Bundler::GemNotFound => e STDERR.puts e.message STDERR.puts "Try running `bundle install`." exit! end Bundler.require(:spec) Rspec.configure do |config| config.mock_with :rspec end # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. require "apnserver" require 'base64' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}