Commits

Anonymous committed aa6f58c

Fixed some more test/unit/*_test.rb breaking when run alone (#12285)

git-svn-id: svn://rubyforge.org/var/svn/redmine/trunk@10786e93f8b46-1217-0410-a6f0-8f06a7374b81

Comments (0)

Files changed (8)

test/unit/comment_test.rb

 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)

test/unit/journal_observer_test.rb

 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

test/unit/journal_test.rb

 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

test/unit/lib/redmine/menu_manager/menu_helper_test.rb

 
   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

test/unit/message_test.rb

 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)

test/unit/project_test.rb

            :groups_users,
            :boards, :messages,
            :repositories,
+           :news, :comments,
            :documents
 
   def setup

test/unit/role_test.rb

 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

test/unit/time_entry_activity_test.rb

 require File.expand_path('../../test_helper', __FILE__)
 
 class TimeEntryActivityTest < ActiveSupport::TestCase
-  fixtures :enumerations, :time_entries
+  fixtures :enumerations, :time_entries, :custom_fields
 
   include Redmine::I18n