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