aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/isolation
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2009-12-22 17:03:23 -0800
committerCarlhuda <carlhuda@engineyard.com>2009-12-23 15:16:38 -0800
commitdc677f7665e5ec74b5a313ba656bba19dc0f853d (patch)
tree589200f34212e8944621ce03d7323e9bbd6771eb /railties/test/isolation
parent24e1b5560806be54a931922f109f50800dcbbdf5 (diff)
downloadrails-dc677f7665e5ec74b5a313ba656bba19dc0f853d.tar.gz
rails-dc677f7665e5ec74b5a313ba656bba19dc0f853d.tar.bz2
rails-dc677f7665e5ec74b5a313ba656bba19dc0f853d.zip
tests pass with requiring the frameworks in rails.rb
Diffstat (limited to 'railties/test/isolation')
-rw-r--r--railties/test/isolation/abstract_unit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb
index c169c80bea..ee0a812b47 100644
--- a/railties/test/isolation/abstract_unit.rb
+++ b/railties/test/isolation/abstract_unit.rb
@@ -153,6 +153,14 @@ module TestHelpers
app_file("app/controllers/#{name}_controller.rb", contents)
end
+ def use_frameworks(arr)
+ to_remove = [:actionmailer,
+ :activemodel,
+ :activerecord,
+ :activeresource] - arr
+ $:.reject! {|path| path =~ %r'/(#{to_remove.join('|')})/' }
+ end
+
def boot_rails
root = File.expand_path('../../../..', __FILE__)
begin