# -*- encoding : utf-8 -*- RAILS_ENV = 'test' ENV['RAILS_ENV'] = 'test' RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) $LOAD_PATH.unshift(File.join(RAILS_ROOT, 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rubygems' require 'bundler/setup' require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development, :test) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'rspec' require 'itrigga/core_ext' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["RAILS_ROOT}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| end