Skip to content

Commit

Permalink
setup bundler from spec helper in case specs are run outside of rake
Browse files Browse the repository at this point in the history
  • Loading branch information
sinisterchipmunk committed Feb 15, 2012
1 parent 1429694 commit 56707ae
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion spec/spec_helper.rb
@@ -1,4 +1,15 @@
require 'rubygems'
begin
require 'rubygems'
require 'bundler'
Bundler.setup
rescue LoadError
puts " *** You don't seem to have Bundler installed. ***"
puts " Please run the following command:"
puts
puts " gem install bundler"
exit
end

require File.join(File.dirname(__FILE__), '../lib/eve')
require 'rails'
##require "active_record/railtie"
Expand Down

0 comments on commit 56707ae

Please sign in to comment.