Commit aaa4b82ed89a201652f42aabc8fc699622f823ad

Authored by AntonioTerceiro
1 parent 7d7d57bb

ActionItem8: to the hell, load all the existing features



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@324 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/account_controller_test.rb
@@ -9,7 +9,7 @@ class AccountControllerTest < Test::Unit::TestCase @@ -9,7 +9,7 @@ class AccountControllerTest < Test::Unit::TestCase
9 # Then, you can remove it from this and the units test. 9 # Then, you can remove it from this and the units test.
10 include AuthenticatedTestHelper 10 include AuthenticatedTestHelper
11 11
12 - fixtures :users, :profiles, :virtual_communities 12 + all_fixtures
13 13
14 def setup 14 def setup
15 @controller = AccountController.new 15 @controller = AccountController.new
test/test_helper.rb
@@ -28,6 +28,12 @@ class Test::Unit::TestCase @@ -28,6 +28,12 @@ class Test::Unit::TestCase
28 28
29 include AuthenticatedTestHelper 29 include AuthenticatedTestHelper
30 30
  31 + def self.all_fixtures
  32 + Dir.glob(File.join(RAILS_ROOT, 'test', 'fixtures', '*.yml')).each do |item|
  33 + fixtures File.basename(item).sub(/\.yml$/, '').to_s
  34 + end
  35 + end
  36 +
31 private 37 private
32 38
33 def uses_host(name) 39 def uses_host(name)