Commit aaa4b82ed89a201652f42aabc8fc699622f823ad
1 parent
7d7d57bb
Exists in
master
and in
28 other branches
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
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
test/functional/account_controller_test.rb
... | ... | @@ -9,7 +9,7 @@ class AccountControllerTest < Test::Unit::TestCase |
9 | 9 | # Then, you can remove it from this and the units test. |
10 | 10 | include AuthenticatedTestHelper |
11 | 11 | |
12 | - fixtures :users, :profiles, :virtual_communities | |
12 | + all_fixtures | |
13 | 13 | |
14 | 14 | def setup |
15 | 15 | @controller = AccountController.new | ... | ... |
test/test_helper.rb
... | ... | @@ -28,6 +28,12 @@ class Test::Unit::TestCase |
28 | 28 | |
29 | 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 | 37 | private |
32 | 38 | |
33 | 39 | def uses_host(name) | ... | ... |