Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The spec helper I use to run faster specs
ENV["RAILS_ENV"] ||= 'test'
cur_dir = File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH << "#{cur_dir}"
if defined? Bundler
# Most likely going with the full env
require 'spec_helper'
$LOAD_PATH << "#{cur_dir}/app/models"
$LOAD_PATH << "#{cur_dir}/lib"
require 'spec/support/rspec'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment