From aaa4b82ed89a201652f42aabc8fc699622f823ad Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 8 Aug 2007 15:07:57 +0000 Subject: [PATCH] ActionItem8: to the hell, load all the existing features --- test/functional/account_controller_test.rb | 2 +- test/test_helper.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 09bde5b..239498b 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -9,7 +9,7 @@ class AccountControllerTest < Test::Unit::TestCase # Then, you can remove it from this and the units test. include AuthenticatedTestHelper - fixtures :users, :profiles, :virtual_communities + all_fixtures def setup @controller = AccountController.new diff --git a/test/test_helper.rb b/test/test_helper.rb index 4c4017f..eacdf90 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -28,6 +28,12 @@ class Test::Unit::TestCase include AuthenticatedTestHelper + def self.all_fixtures + Dir.glob(File.join(RAILS_ROOT, 'test', 'fixtures', '*.yml')).each do |item| + fixtures File.basename(item).sub(/\.yml$/, '').to_s + end + end + private def uses_host(name) -- libgit2 0.21.2