Skip to content
This repository
Newer
Older
100644 33 lines (31 sloc) 0.65 kb
24ab5665 »
2010-02-23 Revert "Fix test load paths for those not using bundler"
1 begin
2 require File.expand_path('../.bundle/environment', __FILE__)
3 rescue LoadError
4 begin
4384a95b »
2010-03-27 Bust gem prelude to ensure bundler's in the load path. Not sure what'…
5 # bust gem prelude
6 if defined? Gem
3ab82d8a »
2011-02-21 Gem.cache is going to be deprecated, use source_index instead
7 Gem.source_index
4384a95b »
2010-03-27 Bust gem prelude to ensure bundler's in the load path. Not sure what'…
8 gem 'bundler'
9 else
10 require 'rubygems'
11 end
24ab5665 »
2010-02-23 Revert "Fix test load paths for those not using bundler"
12 require 'bundler'
13 Bundler.setup
14 rescue LoadError
2ce3085e »
2010-02-28 Define Bundler constant stub if bundler gem is not installed
15 module Bundler
16 def self.require(*args, &block); end
17 def self.method_missing(*args, &block); end
18 end
19
24ab5665 »
2010-02-23 Revert "Fix test load paths for those not using bundler"
20 %w(
21 actionmailer
22 actionpack
23 activemodel
24 activerecord
25 activeresource
26 activesupport
27 railties
28 ).each do |framework|
29 $:.unshift File.expand_path("../#{framework}/lib", __FILE__)
30 end
31 end
32 end
Something went wrong with that request. Please try again.