public
Fork of dchelimsky/rspec-tmbundle
Description: Textmate bundle for RSpec.
Clone URL: git://github.com/timcharper/rspec-tmbundle.git
Added vendor_rails? method to boot.rb in rails app to support older and 
newer versions of rails simultaneously. Closes #351.
dchelimsky (author)
Sun Mar 30 06:38:26 -0700 2008
commit  b113612a8fadefe53bec67972f6d7ac00a802c3d
tree    fa032f4968c80ffc1ed170cbf044961cad7ea44e
parent  8561531fd8dc85acddb92a09a30dca57fd612610
...
10
11
12
 
 
 
 
 
 
 
 
13
14
15
...
10
11
12
13
14
15
16
17
18
19
20
21
22
23
0
@@ -10,6 +10,14 @@ unless defined?(RAILS_ROOT)
0
   RAILS_ROOT = root_path
0
 end
0
 
0
+module Rails
0
+ class << self
0
+ def vendor_rails?
0
+ true
0
+ end
0
+ end
0
+end
0
+
0
 ENV['RSPEC_RAILS_VERSION'] ||= "edge"
0
 puts "running against rails #{ENV['RSPEC_RAILS_VERSION']}"
0
 

Comments

    No one has commented yet.