File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 66
77ENV [ 'BUNDLE_GEMFILE' ] = File . expand_path ( '../../../Gemfile' , __FILE__ )
88
9+ require File . expand_path ( '../../../spec/support/detect_rails_version' , __FILE__ )
10+ ENV [ "RAILS" ] ||= detect_rails_version
11+
912require 'rubygems'
1013require "bundler"
1114Bundler . setup
1215
13- ENV [ "RAILS" ] ||= "3.0.0"
1416ENV [ "RAILS_ENV" ] ||= "cucumber"
1517ENV [ 'RAILS_ROOT' ] = File . expand_path ( "../../../spec/rails/rails-#{ ENV [ "RAILS" ] } " , __FILE__ )
1618
Original file line number Diff line number Diff line change 33
44ENV [ 'BUNDLE_GEMFILE' ] = File . expand_path ( '../../Gemfile' , __FILE__ )
55
6+ require 'detect_rails_version'
7+ ENV [ 'RAILS' ] ||= detect_rails_version
8+
69require "bundler"
710Bundler . setup
811
@@ -79,9 +82,7 @@ def mock_action_view(assigns = {})
7982
8083end
8184
82- ENV [ 'RAILS' ] ||= '3.0.0'
8385ENV [ 'RAILS_ENV' ] = 'test'
84-
8586ENV [ 'RAILS_ROOT' ] = File . expand_path ( "../rails/rails-#{ ENV [ "RAILS" ] } " , __FILE__ )
8687
8788# Create the test app if it doesn't exists
You can’t perform that action at this time.
0 commit comments