Skip to content

Commit

Permalink
Railties test helpers need to activate rack gem
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Sep 1, 2009
1 parent cc1efe7 commit ad49895
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion railties/test/abstract_unit.rb
@@ -1,5 +1,9 @@
ORIG_ARGV = ARGV.dup

require 'rubygems'
gem 'rack', '~> 1.0.0'
gem 'rack-test', '~> 0.4.2'

$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
$:.unshift File.dirname(__FILE__) + "/../../activerecord/lib"
$:.unshift File.dirname(__FILE__) + "/../../actionpack/lib"
Expand All @@ -9,7 +13,6 @@
$:.unshift File.dirname(__FILE__) + "/../builtin/rails_info"

require 'stringio'
require 'rubygems'
require 'test/unit'

require 'active_support'
Expand Down
3 changes: 3 additions & 0 deletions railties/test/initializer/test_helper.rb
Expand Up @@ -5,6 +5,9 @@
RAILS_ROOT = File.join(File.dirname(__FILE__), "root")
RAILS_FRAMEWORK_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))

require 'rubygems'
gem 'rack', '~> 1.0.0'

require "test/unit"
# We are purposely avoiding adding things to the load path to catch bugs that only happen in the genuine article
require File.join(RAILS_FRAMEWORK_ROOT, 'activesupport', 'lib', 'active_support', 'testing', 'isolation')
Expand Down
3 changes: 3 additions & 0 deletions railties/test/rails_info_test.rb
Expand Up @@ -3,6 +3,9 @@
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
$:.unshift File.dirname(__FILE__) + "/../../actionpack/lib"

require 'rubygems'
gem 'rack', '~> 1.0.0'

require 'test/unit'
require 'active_support'
require 'active_support/test_case'
Expand Down

0 comments on commit ad49895

Please sign in to comment.