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
This commit is contained in:
parent
ff9b3d3a06
commit
0beef88850
|
@ -18,7 +18,7 @@
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class CommentTest < ActiveSupport::TestCase
|
class CommentTest < ActiveSupport::TestCase
|
||||||
fixtures :users, :news, :comments
|
fixtures :users, :news, :comments, :projects, :enabled_modules
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@jsmith = User.find(2)
|
@jsmith = User.find(2)
|
||||||
|
|
|
@ -18,7 +18,9 @@
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class JournalObserverTest < ActiveSupport::TestCase
|
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
|
def setup
|
||||||
ActionMailer::Base.deliveries.clear
|
ActionMailer::Base.deliveries.clear
|
||||||
|
|
|
@ -18,7 +18,9 @@
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class JournalTest < ActiveSupport::TestCase
|
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
|
def setup
|
||||||
@journal = Journal.find 1
|
@journal = Journal.find 1
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Redmine::MenuManager::MenuHelperTest < ActionView::TestCase
|
||||||
|
|
||||||
include Redmine::MenuManager::MenuHelper
|
include Redmine::MenuManager::MenuHelper
|
||||||
include ERB::Util
|
include ERB::Util
|
||||||
fixtures :users, :members, :projects, :enabled_modules
|
fixtures :users, :members, :projects, :enabled_modules, :roles, :member_roles
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
setup_with_controller
|
setup_with_controller
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class MessageTest < ActiveSupport::TestCase
|
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
|
def setup
|
||||||
@board = Board.find(1)
|
@board = Board.find(1)
|
||||||
|
|
|
@ -36,6 +36,7 @@ class ProjectTest < ActiveSupport::TestCase
|
||||||
:groups_users,
|
:groups_users,
|
||||||
:boards, :messages,
|
:boards, :messages,
|
||||||
:repositories,
|
:repositories,
|
||||||
|
:news, :comments,
|
||||||
:documents
|
:documents
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class RoleTest < ActiveSupport::TestCase
|
class RoleTest < ActiveSupport::TestCase
|
||||||
fixtures :roles, :workflows
|
fixtures :roles, :workflows, :trackers
|
||||||
|
|
||||||
def test_sorted_scope
|
def test_sorted_scope
|
||||||
assert_equal Role.all.sort, Role.sorted.all
|
assert_equal Role.all.sort, Role.sorted.all
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class TimeEntryActivityTest < ActiveSupport::TestCase
|
class TimeEntryActivityTest < ActiveSupport::TestCase
|
||||||
fixtures :enumerations, :time_entries
|
fixtures :enumerations, :time_entries, :custom_fields
|
||||||
|
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue