diff options
author | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2012-11-01 22:47:25 +0000 |
---|---|---|
committer | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2012-11-01 22:47:25 +0000 |
commit | 0beef88850b6a6b85d66e717c62c0e44b1cca23f (patch) | |
tree | 27d38785005731a9088a6fb25f31ba29cb4536fd /test | |
parent | ff9b3d3a06ad418dc4c9aed248e25b8708e1c5e4 (diff) | |
download | redmine-0beef88850b6a6b85d66e717c62c0e44b1cca23f.tar.gz redmine-0beef88850b6a6b85d66e717c62c0e44b1cca23f.zip |
Fixed some more test/unit/*_test.rb breaking when run alone (#12285)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10786 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/comment_test.rb | 2 | ||||
-rw-r--r-- | test/unit/journal_observer_test.rb | 4 | ||||
-rw-r--r-- | test/unit/journal_test.rb | 4 | ||||
-rw-r--r-- | test/unit/lib/redmine/menu_manager/menu_helper_test.rb | 2 | ||||
-rw-r--r-- | test/unit/message_test.rb | 3 | ||||
-rw-r--r-- | test/unit/project_test.rb | 1 | ||||
-rw-r--r-- | test/unit/role_test.rb | 2 | ||||
-rw-r--r-- | test/unit/time_entry_activity_test.rb | 2 |
8 files changed, 13 insertions, 7 deletions
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index f88528d32..2ca618a40 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_test.rb @@ -18,7 +18,7 @@ require File.expand_path('../../test_helper', __FILE__) class CommentTest < ActiveSupport::TestCase - fixtures :users, :news, :comments + fixtures :users, :news, :comments, :projects, :enabled_modules def setup @jsmith = User.find(2) diff --git a/test/unit/journal_observer_test.rb b/test/unit/journal_observer_test.rb index 2e7bad436..e9049ac8e 100644 --- a/test/unit/journal_observer_test.rb +++ b/test/unit/journal_observer_test.rb @@ -18,7 +18,9 @@ require File.expand_path('../../test_helper', __FILE__) class JournalObserverTest < ActiveSupport::TestCase - fixtures :issues, :issue_statuses, :journals, :journal_details + fixtures :issues, :issue_statuses, :journals, :journal_details, :projects, + :projects_trackers, :trackers, :enabled_modules, :enumerations, + :users, :roles def setup ActionMailer::Base.deliveries.clear diff --git a/test/unit/journal_test.rb b/test/unit/journal_test.rb index a2669cec1..315ea51cf 100644 --- a/test/unit/journal_test.rb +++ b/test/unit/journal_test.rb @@ -18,7 +18,9 @@ require File.expand_path('../../test_helper', __FILE__) class JournalTest < ActiveSupport::TestCase - fixtures :projects, :issues, :issue_statuses, :journals, :journal_details, :users, :members, :member_roles + fixtures :projects, :issues, :issue_statuses, :journals, :journal_details, + :users, :members, :member_roles, :roles, :enabled_modules, + :projects_trackers, :trackers def setup @journal = Journal.find 1 diff --git a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb index fe44bcce6..5681e945e 100644 --- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb +++ b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb @@ -21,7 +21,7 @@ class Redmine::MenuManager::MenuHelperTest < ActionView::TestCase include Redmine::MenuManager::MenuHelper include ERB::Util - fixtures :users, :members, :projects, :enabled_modules + fixtures :users, :members, :projects, :enabled_modules, :roles, :member_roles def setup setup_with_controller diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb index 00b7351ee..c038e3df0 100644 --- a/test/unit/message_test.rb +++ b/test/unit/message_test.rb @@ -18,7 +18,8 @@ require File.expand_path('../../test_helper', __FILE__) class MessageTest < ActiveSupport::TestCase - fixtures :projects, :roles, :members, :member_roles, :boards, :messages, :users, :watchers + fixtures :projects, :roles, :members, :member_roles, :boards, :messages, + :users, :watchers, :enabled_modules def setup @board = Board.find(1) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 8960f24af..72cb73288 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -36,6 +36,7 @@ class ProjectTest < ActiveSupport::TestCase :groups_users, :boards, :messages, :repositories, + :news, :comments, :documents def setup diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb index e93d76c84..af5b6421e 100644 --- a/test/unit/role_test.rb +++ b/test/unit/role_test.rb @@ -18,7 +18,7 @@ require File.expand_path('../../test_helper', __FILE__) class RoleTest < ActiveSupport::TestCase - fixtures :roles, :workflows + fixtures :roles, :workflows, :trackers def test_sorted_scope assert_equal Role.all.sort, Role.sorted.all diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb index ec058bdd5..98bc21426 100644 --- a/test/unit/time_entry_activity_test.rb +++ b/test/unit/time_entry_activity_test.rb @@ -18,7 +18,7 @@ require File.expand_path('../../test_helper', __FILE__) class TimeEntryActivityTest < ActiveSupport::TestCase - fixtures :enumerations, :time_entries + fixtures :enumerations, :time_entries, :custom_fields include Redmine::I18n |