-
-
Save dasch/1676013 to your computer and use it in GitHub Desktop.
The spec helper I use to run faster specs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
else | |
$LOAD_PATH << "#{cur_dir}/app/models" | |
$LOAD_PATH << "#{cur_dir}/lib" | |
require 'spec/support/rspec' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment