summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-12-11 10:17:57 +0000
committerGo MAEDA <maeda@farend.jp>2024-12-11 10:17:57 +0000
commit4fb1e4bea0edb5fe520aa8257f5d867232c8f729 (patch)
treea613cae1a23801f8596e14f2c5d6557cb6060c46
parent7ae0427c9ee891820954dfbd72c129d65989b3e8 (diff)
downloadredmine-4fb1e4bea0edb5fe520aa8257f5d867232c8f729.tar.gz
redmine-4fb1e4bea0edb5fe520aa8257f5d867232c8f729.zip
Use `fixtures :all` to ensure consistent test data and improve test reliability (#41961).
Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23391 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/extra/redmine_pm/repository_git_test_pm.rb2
-rw-r--r--test/extra/redmine_pm/repository_subversion_test_pm.rb2
-rw-r--r--test/functional/account_controller_test.rb2
-rw-r--r--test/functional/activities_controller_test.rb11
-rw-r--r--test/functional/admin_controller_test.rb2
-rw-r--r--test/functional/attachments_controller_test.rb4
-rw-r--r--test/functional/attachments_visibility_test.rb5
-rw-r--r--test/functional/auth_sources_controller_test.rb2
-rw-r--r--test/functional/auto_completes_controller_test.rb11
-rw-r--r--test/functional/boards_controller_test.rb2
-rw-r--r--test/functional/calendars_controller_test.rb16
-rw-r--r--test/functional/comments_controller_test.rb2
-rw-r--r--test/functional/context_menus_controller_test.rb16
-rw-r--r--test/functional/custom_field_enumerations_controller_test.rb2
-rw-r--r--test/functional/custom_fields_controller_test.rb13
-rw-r--r--test/functional/documents_controller_test.rb4
-rw-r--r--test/functional/email_addresses_controller_test.rb2
-rw-r--r--test/functional/enumerations_controller_test.rb2
-rw-r--r--test/functional/files_controller_test.rb13
-rw-r--r--test/functional/gantts_controller_test.rb10
-rw-r--r--test/functional/groups_controller_test.rb2
-rw-r--r--test/functional/help_controller_test.rb2
-rw-r--r--test/functional/imports_controller_test.rb14
-rw-r--r--test/functional/issue_categories_controller_test.rb3
-rw-r--r--test/functional/issue_relations_controller_test.rb13
-rw-r--r--test/functional/issue_statuses_controller_test.rb2
-rw-r--r--test/functional/issues_controller_test.rb28
-rw-r--r--test/functional/issues_controller_transaction_test.rb24
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb13
-rw-r--r--test/functional/journals_controller_test.rb5
-rw-r--r--test/functional/mail_handler_controller_test.rb4
-rw-r--r--test/functional/members_controller_test.rb2
-rw-r--r--test/functional/messages_controller_test.rb3
-rw-r--r--test/functional/my_controller_test.rb6
-rw-r--r--test/functional/news_controller_test.rb4
-rw-r--r--test/functional/previews_controller_test.rb10
-rw-r--r--test/functional/principal_memberships_controller_test.rb2
-rw-r--r--test/functional/project_enumerations_controller_test.rb11
-rw-r--r--test/functional/projects_controller_test.rb8
-rw-r--r--test/functional/queries_controller_test.rb7
-rw-r--r--test/functional/reports_controller_test.rb10
-rw-r--r--test/functional/repositories_bazaar_controller_test.rb3
-rw-r--r--test/functional/repositories_controller_test.rb4
-rw-r--r--test/functional/repositories_cvs_controller_test.rb3
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb3
-rw-r--r--test/functional/repositories_git_controller_test.rb3
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb3
-rw-r--r--test/functional/repositories_subversion_controller_test.rb4
-rw-r--r--test/functional/roles_controller_test.rb2
-rw-r--r--test/functional/search_controller_test.rb9
-rw-r--r--test/functional/search_custom_fields_visibility_test.rb13
-rw-r--r--test/functional/sessions_controller_test.rb2
-rw-r--r--test/functional/settings_controller_test.rb3
-rw-r--r--test/functional/sys_controller_test.rb2
-rw-r--r--test/functional/timelog_controller_test.rb7
-rw-r--r--test/functional/timelog_custom_fields_visibility_test.rb13
-rw-r--r--test/functional/timelog_report_test.rb7
-rw-r--r--test/functional/trackers_controller_test.rb2
-rw-r--r--test/functional/users_controller_test.rb7
-rw-r--r--test/functional/versions_controller_test.rb7
-rw-r--r--test/functional/versions_custom_fields_visibility_test.rb12
-rw-r--r--test/functional/watchers_controller_test.rb4
-rw-r--r--test/functional/welcome_controller_test.rb2
-rw-r--r--test/functional/wiki_controller_test.rb5
-rw-r--r--test/functional/wikis_controller_test.rb2
-rw-r--r--test/functional/workflows_controller_test.rb2
-rw-r--r--test/helpers/activities_helper_test.rb2
-rw-r--r--test/helpers/application_helper_test.rb11
-rw-r--r--test/helpers/avatars_helper_test.rb2
-rw-r--r--test/helpers/groups_helper_test.rb2
-rw-r--r--test/helpers/icons_helper_test.rb2
-rw-r--r--test/helpers/issues_helper_test.rb11
-rw-r--r--test/helpers/journals_helper_test.rb10
-rw-r--r--test/helpers/members_helper_test.rb3
-rw-r--r--test/helpers/projects_helper_test.rb9
-rw-r--r--test/helpers/projects_queries_helper_test.rb3
-rw-r--r--test/helpers/queries_helper_test.rb8
-rw-r--r--test/helpers/reports_helper_test.rb2
-rw-r--r--test/helpers/routes_helper_test.rb2
-rw-r--r--test/helpers/timelog_helper_test.rb8
-rw-r--r--test/helpers/version_helper_test.rb5
-rw-r--r--test/helpers/watchers_helper_test.rb2
-rw-r--r--test/helpers/wiki_helper_test.rb4
-rw-r--r--test/integration/account_test.rb2
-rw-r--r--test/integration/admin_test.rb8
-rw-r--r--test/integration/api_test/api_test.rb2
-rw-r--r--test/integration/api_test/attachments_test.rb9
-rw-r--r--test/integration/api_test/authentication_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_attribute_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_test.rb2
-rw-r--r--test/integration/api_test/disabled_rest_api_test.rb8
-rw-r--r--test/integration/api_test/enumerations_test.rb2
-rw-r--r--test/integration/api_test/files_test.rb9
-rw-r--r--test/integration/api_test/groups_test.rb2
-rw-r--r--test/integration/api_test/issue_categories_test.rb6
-rw-r--r--test/integration/api_test/issue_relations_test.rb9
-rw-r--r--test/integration/api_test/issue_statuses_test.rb2
-rw-r--r--test/integration/api_test/issues_test.rb28
-rw-r--r--test/integration/api_test/journals_test.rb7
-rw-r--r--test/integration/api_test/jsonp_test.rb2
-rw-r--r--test/integration/api_test/memberships_test.rb2
-rw-r--r--test/integration/api_test/my_test.rb2
-rw-r--r--test/integration/api_test/news_test.rb11
-rw-r--r--test/integration/api_test/projects_test.rb5
-rw-r--r--test/integration/api_test/queries_test.rb9
-rw-r--r--test/integration/api_test/repositories_test.rb6
-rw-r--r--test/integration/api_test/roles_test.rb2
-rw-r--r--test/integration/api_test/search_test.rb8
-rw-r--r--test/integration/api_test/time_entries_test.rb9
-rw-r--r--test/integration/api_test/trackers_test.rb2
-rw-r--r--test/integration/api_test/users_test.rb2
-rw-r--r--test/integration/api_test/versions_test.rb11
-rw-r--r--test/integration/api_test/wiki_pages_test.rb4
-rw-r--r--test/integration/application_test.rb8
-rw-r--r--test/integration/attachments_test.rb9
-rw-r--r--test/integration/feeds_test.rb5
-rw-r--r--test/integration/issues_test.rb17
-rw-r--r--test/integration/layout_test.rb8
-rw-r--r--test/integration/lib/redmine/field_format/attachment_format_test.rb16
-rw-r--r--test/integration/lib/redmine/hook_test.rb2
-rw-r--r--test/integration/lib/redmine/menu_manager_test.rb9
-rw-r--r--test/integration/projects_test.rb2
-rw-r--r--test/integration/repositories_git_test.rb3
-rw-r--r--test/integration/sessions_test.rb2
-rw-r--r--test/integration/sudo_mode_test.rb2
-rw-r--r--test/integration/twofa_test.rb2
-rw-r--r--test/integration/users_test.rb2
-rw-r--r--test/integration/welcome_test.rb3
-rw-r--r--test/integration/wiki_test.rb12
-rw-r--r--test/system/copy_to_clipboard_test.rb6
-rw-r--r--test/system/custom_field_enumerations_test.rb5
-rw-r--r--test/system/inline_autocomplete_test.rb7
-rw-r--r--test/system/issues_import_test.rb5
-rw-r--r--test/system/issues_reply_test.rb7
-rw-r--r--test/system/issues_test.rb7
-rw-r--r--test/system/keyboard_shortcuts_test.rb6
-rw-r--r--test/system/messages_test.rb5
-rw-r--r--test/system/my_page_test.rb5
-rw-r--r--test/system/quick_jump_test.rb5
-rw-r--r--test/system/repositories_test.rb4
-rw-r--r--test/system/sudo_mode_test.rb2
-rw-r--r--test/system/timelog_test.rb5
-rw-r--r--test/system/versions_test.rb5
-rw-r--r--test/test_helper.rb2
-rw-r--r--test/unit/activity_test.rb4
-rw-r--r--test/unit/attachment_test.rb3
-rw-r--r--test/unit/attachment_transaction_test.rb3
-rw-r--r--test/unit/auth_source_ldap_test.rb2
-rw-r--r--test/unit/board_test.rb2
-rw-r--r--test/unit/changeset_test.rb13
-rw-r--r--test/unit/comment_test.rb3
-rw-r--r--test/unit/custom_field_test.rb4
-rw-r--r--test/unit/custom_field_user_format_test.rb2
-rw-r--r--test/unit/custom_field_version_format_test.rb2
-rw-r--r--test/unit/custom_value_test.rb2
-rw-r--r--test/unit/default_data_test.rb2
-rw-r--r--test/unit/document_category_test.rb2
-rw-r--r--test/unit/document_test.rb5
-rw-r--r--test/unit/email_address_test.rb2
-rw-r--r--test/unit/enabled_module_test.rb2
-rw-r--r--test/unit/enumeration_test.rb2
-rw-r--r--test/unit/group_test.rb7
-rw-r--r--test/unit/issue_category_test.rb2
-rw-r--r--test/unit/issue_custom_field_test.rb2
-rw-r--r--test/unit/issue_import_test.rb14
-rw-r--r--test/unit/issue_nested_set_concurrency_test.rb6
-rw-r--r--test/unit/issue_nested_set_test.rb6
-rw-r--r--test/unit/issue_priority_test.rb2
-rw-r--r--test/unit/issue_relation_test.rb13
-rw-r--r--test/unit/issue_scopes_test.rb8
-rw-r--r--test/unit/issue_status_test.rb10
-rw-r--r--test/unit/issue_subtasking_test.rb7
-rw-r--r--test/unit/issue_test.rb12
-rw-r--r--test/unit/issue_transaction_test.rb9
-rw-r--r--test/unit/jobs/destroy_project_job_test.rb2
-rw-r--r--test/unit/jobs/destroy_projects_job_test.rb2
-rw-r--r--test/unit/journal_observer_test.rb5
-rw-r--r--test/unit/journal_test.rb7
-rw-r--r--test/unit/lib/redmine/acts/mentionable_test.rb8
-rw-r--r--test/unit/lib/redmine/acts/positioned_with_scope_test.rb2
-rw-r--r--test/unit/lib/redmine/acts/positioned_without_scope_test.rb2
-rw-r--r--test/unit/lib/redmine/ciphering_test.rb2
-rw-r--r--test/unit/lib/redmine/export/pdf/issues_pdf_test.rb3
-rw-r--r--test/unit/lib/redmine/export/pdf_test.rb3
-rw-r--r--test/unit/lib/redmine/export/text/versions_text_helper_test.rb3
-rw-r--r--test/unit/lib/redmine/field_format/attachment_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb7
-rw-r--r--test/unit/lib/redmine/field_format/numeric_format_test.rb4
-rw-r--r--test/unit/lib/redmine/field_format/user_field_format_test.rb6
-rw-r--r--test/unit/lib/redmine/field_format/version_field_format_test.rb6
-rw-r--r--test/unit/lib/redmine/helpers/gantt_test.rb3
-rw-r--r--test/unit/lib/redmine/hook_test.rb10
-rw-r--r--test/unit/lib/redmine/menu_manager/menu_helper_test.rb2
-rw-r--r--test/unit/lib/redmine/project_jump_box_test.rb2
-rw-r--r--test/unit/lib/redmine/quote_reply_helper_test.rb2
-rw-r--r--test/unit/lib/redmine/safe_attributes_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb11
-rw-r--r--test/unit/lib/redmine/wiki_formatting/macros_test.rb8
-rw-r--r--test/unit/lib/redmine/wiki_formatting_test.rb2
-rw-r--r--test/unit/mail_handler_test.rb10
-rw-r--r--test/unit/mailer_localisation_test.rb9
-rw-r--r--test/unit/mailer_test.rb10
-rw-r--r--test/unit/member_test.rb14
-rw-r--r--test/unit/message_test.rb3
-rw-r--r--test/unit/news_test.rb2
-rw-r--r--test/unit/principal_test.rb3
-rw-r--r--test/unit/project_copy_test.rb20
-rw-r--r--test/unit/project_members_inheritance_test.rb3
-rw-r--r--test/unit/project_query_test.rb9
-rw-r--r--test/unit/project_test.rb22
-rw-r--r--test/unit/query_test.rb10
-rw-r--r--test/unit/repository_bazaar_test.rb2
-rw-r--r--test/unit/repository_cvs_test.rb2
-rw-r--r--test/unit/repository_filesystem_test.rb2
-rw-r--r--test/unit/repository_git_test.rb2
-rw-r--r--test/unit/repository_mercurial_test.rb2
-rw-r--r--test/unit/repository_subversion_test.rb2
-rw-r--r--test/unit/repository_test.rb20
-rw-r--r--test/unit/role_test.rb2
-rw-r--r--test/unit/search_test.rb16
-rw-r--r--test/unit/setting_test.rb2
-rw-r--r--test/unit/time_entry_activity_test.rb10
-rw-r--r--test/unit/time_entry_custom_field_test.rb2
-rw-r--r--test/unit/time_entry_import_test.rb12
-rw-r--r--test/unit/time_entry_query_test.rb10
-rw-r--r--test/unit/time_entry_test.rb10
-rw-r--r--test/unit/token_test.rb2
-rw-r--r--test/unit/tracker_test.rb2
-rw-r--r--test/unit/user_import_test.rb2
-rw-r--r--test/unit/user_preference_test.rb2
-rw-r--r--test/unit/user_query_test.rb3
-rw-r--r--test/unit/user_test.rb12
-rw-r--r--test/unit/version_test.rb5
-rw-r--r--test/unit/watcher_test.rb6
-rw-r--r--test/unit/wiki_content_test.rb5
-rw-r--r--test/unit/wiki_content_version_test.rb2
-rw-r--r--test/unit/wiki_page_test.rb2
-rw-r--r--test/unit/wiki_redirect_test.rb2
-rw-r--r--test/unit/wiki_test.rb2
-rw-r--r--test/unit/workflow_test.rb2
-rw-r--r--test/unit/workflow_transition_test.rb2
241 files changed, 2 insertions, 1378 deletions
diff --git a/test/extra/redmine_pm/repository_git_test_pm.rb b/test/extra/redmine_pm/repository_git_test_pm.rb
index 6faca20f5..59fe280c0 100644
--- a/test/extra/redmine_pm/repository_git_test_pm.rb
+++ b/test/extra/redmine_pm/repository_git_test_pm.rb
@@ -21,8 +21,6 @@ require_relative 'test_case'
require 'tmpdir'
class RedminePmTest::RepositoryGitTest < RedminePmTest::TestCase
- fixtures :projects, :users, :members, :roles, :member_roles
-
GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"
def test_anonymous_read_on_public_repo_with_permission_should_succeed
diff --git a/test/extra/redmine_pm/repository_subversion_test_pm.rb b/test/extra/redmine_pm/repository_subversion_test_pm.rb
index 4dc5bfe66..85649722a 100644
--- a/test/extra/redmine_pm/repository_subversion_test_pm.rb
+++ b/test/extra/redmine_pm/repository_subversion_test_pm.rb
@@ -21,8 +21,6 @@ require_relative 'test_case'
require 'tmpdir'
class RedminePmTest::RepositorySubversionTest < RedminePmTest::TestCase
- fixtures :projects, :users, :members, :roles, :member_roles, :auth_sources, :enabled_modules
-
SVN_BIN = Redmine::Configuration['scm_subversion_command'] || "svn"
def test_anonymous_read_on_public_repo_with_permission_should_succeed
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index 4954f3292..e62dce943 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class AccountControllerTest < Redmine::ControllerTest
- fixtures :users, :email_addresses, :roles
-
def setup
User.current = nil
end
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb
index 3fb0c1fbc..85f0767f7 100644
--- a/test/functional/activities_controller_test.rb
+++ b/test/functional/activities_controller_test.rb
@@ -20,17 +20,6 @@
require_relative '../test_helper'
class ActivitiesControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :groups_users,
- :enabled_modules,
- :journals, :journal_details,
- :attachments, :changesets, :documents, :messages, :news, :time_entries, :wiki_content_versions
-
def test_project_index
get(
:index,
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb
index 41f12300f..3c8f50fdf 100644
--- a/test/functional/admin_controller_test.rb
+++ b/test/functional/admin_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class AdminControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :email_addresses, :roles
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index 61c71b312..04fdb15d2 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class AttachmentsControllerTest < Redmine::ControllerTest
- fixtures :users, :user_preferences, :projects, :roles, :members, :member_roles,
- :enabled_modules, :issues, :trackers, :attachments, :issue_statuses, :journals, :journal_details,
- :versions, :wiki_pages, :wikis, :documents, :enumerations
-
def setup
User.current = nil
set_fixtures_attachments_directory
diff --git a/test/functional/attachments_visibility_test.rb b/test/functional/attachments_visibility_test.rb
index ad1d83f93..292b15bf4 100644
--- a/test/functional/attachments_visibility_test.rb
+++ b/test/functional/attachments_visibility_test.rb
@@ -21,11 +21,6 @@ require_relative '../test_helper'
class AttachmentsVisibilityTest < Redmine::ControllerTest
tests AttachmentsController
- fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles,
- :enabled_modules, :projects_trackers, :issue_statuses, :enumerations,
- :issues, :trackers, :versions,
- :custom_fields, :custom_fields_trackers, :custom_fields_projects
-
def setup
User.current = nil
set_tmp_attachments_directory
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb
index e470e8e1b..7909ef961 100644
--- a/test/functional/auth_sources_controller_test.rb
+++ b/test/functional/auth_sources_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class AuthSourcesControllerTest < Redmine::ControllerTest
- fixtures :users, :auth_sources
-
def setup
@request.session[:user_id] = 1
end
diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb
index c88178400..0bf9bc5e5 100644
--- a/test/functional/auto_completes_controller_test.rb
+++ b/test/functional/auto_completes_controller_test.rb
@@ -20,17 +20,6 @@
require_relative '../test_helper'
class AutoCompletesControllerTest < Redmine::ControllerTest
- fixtures :projects, :issues, :issue_statuses,
- :enumerations, :users, :issue_categories,
- :trackers,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :journals, :journal_details,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def test_issues_should_not_be_case_sensitive
get(
:issues,
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index 4062c3fb8..078b324e4 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class BoardsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
-
def setup
User.current = nil
end
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index ecf9e5597..227919435 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -20,22 +20,6 @@
require_relative '../test_helper'
class CalendarsControllerTest < Redmine::ControllerTest
- fixtures :projects,
- :trackers,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :issues,
- :issue_statuses,
- :issue_relations,
- :issue_categories,
- :enumerations,
- :queries,
- :users, :email_addresses,
- :versions
-
def test_show
# Ensure that an issue to which a user is assigned is in the current
# month's calendar in order to test Gravatar
diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb
index e1118f77e..a76700e62 100644
--- a/test/functional/comments_controller_test.rb
+++ b/test/functional/comments_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class CommentsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news, :comments
-
def setup
User.current = nil
end
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index e10d2309c..34d543583 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -20,22 +20,6 @@
require_relative '../test_helper'
class ContextMenusControllerTest < Redmine::ControllerTest
- fixtures :projects,
- :trackers,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :workflows,
- :journals, :journal_details,
- :versions,
- :issues, :issue_statuses, :issue_categories,
- :users,
- :enumerations,
- :time_entries,
- :custom_fields, :custom_fields_trackers, :custom_fields_projects
-
def test_context_menu_one_issue_should_link_to_issue_path
@request.session[:user_id] = 2
get(
diff --git a/test/functional/custom_field_enumerations_controller_test.rb b/test/functional/custom_field_enumerations_controller_test.rb
index e74790495..7a93baa1f 100644
--- a/test/functional/custom_field_enumerations_controller_test.rb
+++ b/test/functional/custom_field_enumerations_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class CustomFieldEnumerationsControllerTest < Redmine::ControllerTest
- fixtures :users, :email_addresses
-
def setup
@request.session[:user_id] = 1
@field = GroupCustomField.create!(:name => 'List', :field_format => 'enumeration', :is_required => false)
diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb
index b3fa614ba..0706a2eda 100644
--- a/test/functional/custom_fields_controller_test.rb
+++ b/test/functional/custom_fields_controller_test.rb
@@ -20,19 +20,6 @@
require_relative '../test_helper'
class CustomFieldsControllerTest < Redmine::ControllerTest
- fixtures :custom_fields, :custom_values,
- :custom_fields_projects, :custom_fields_trackers,
- :roles, :users,
- :members, :member_roles,
- :groups_users,
- :trackers, :projects_trackers,
- :enabled_modules,
- :projects, :issues,
- :issue_statuses,
- :issue_categories,
- :enumerations,
- :workflows
-
def setup
@request.session[:user_id] = 1
end
diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb
index beb0718a9..b59ecdc81 100644
--- a/test/functional/documents_controller_test.rb
+++ b/test/functional/documents_controller_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class DocumentsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :enabled_modules, :documents, :enumerations,
- :groups_users, :attachments, :user_preferences
-
def setup
User.current = nil
end
diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb
index 426547907..89788ea47 100644
--- a/test/functional/email_addresses_controller_test.rb
+++ b/test/functional/email_addresses_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class EmailAddressesControllerTest < Redmine::ControllerTest
- fixtures :users, :email_addresses
-
def setup
User.current = nil
end
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index a87d72d9f..374fc9ada 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class EnumerationsControllerTest < Redmine::ControllerTest
- fixtures :enumerations, :issues, :users
-
def setup
@request.session[:user_id] = 1 # admin
end
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 4cc5c972b..57db1579b 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -20,19 +20,6 @@
require_relative '../test_helper'
class FilesControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users,
- :email_addresses,
- :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :journals, :journal_details,
- :attachments,
- :versions
-
def setup
@request.session[:user_id] = nil
Setting.default_language = 'en'
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index 48dfc8ae7..daba816b8 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class GanttsControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :versions,
- :email_addresses
-
def test_gantt_should_work
i2 = Issue.find(2)
i2.update_attribute(:due_date, 1.month.from_now)
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index ede4efce3..e9156c88c 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class GroupsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
-
def setup
@request.session[:user_id] = 1
end
diff --git a/test/functional/help_controller_test.rb b/test/functional/help_controller_test.rb
index 27838aba9..c91cc4bda 100644
--- a/test/functional/help_controller_test.rb
+++ b/test/functional/help_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class HelpControllerTest < Redmine::ControllerTest
- fixtures :users, :email_addresses
-
def test_get_help_wiki_syntax
formatters = {
:textile => "Wiki Syntax Quick Reference",
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb
index ad1e1aade..f1c477019 100644
--- a/test/functional/imports_controller_test.rb
+++ b/test/functional/imports_controller_test.rb
@@ -20,20 +20,6 @@
require_relative '../test_helper'
class ImportsControllerTest < Redmine::ControllerTest
- fixtures :projects, :enabled_modules,
- :users, :email_addresses, :user_preferences,
- :roles, :members, :member_roles,
- :issues, :issue_statuses,
- :trackers, :projects_trackers,
- :versions,
- :issue_categories,
- :enumerations,
- :workflows,
- :custom_fields,
- :custom_values,
- :custom_fields_projects,
- :custom_fields_trackers
-
include Redmine::I18n
def setup
diff --git a/test/functional/issue_categories_controller_test.rb b/test/functional/issue_categories_controller_test.rb
index 62b2d42e4..9b3448216 100644
--- a/test/functional/issue_categories_controller_test.rb
+++ b/test/functional/issue_categories_controller_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class IssueCategoriesControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :members, :member_roles, :roles, :enabled_modules, :issue_categories,
- :issues
-
def setup
User.current = nil
@request.session[:user_id] = 2
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb
index fadf1011b..b01263c87 100644
--- a/test/functional/issue_relations_controller_test.rb
+++ b/test/functional/issue_relations_controller_test.rb
@@ -20,19 +20,6 @@
require_relative '../test_helper'
class IssueRelationsControllerTest < Redmine::ControllerTest
- fixtures :projects,
- :users,
- :roles,
- :members,
- :member_roles,
- :issues,
- :issue_statuses,
- :issue_relations,
- :enabled_modules,
- :enumerations,
- :trackers,
- :projects_trackers
-
def setup
User.current = nil
@request.session[:user_id] = 3
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index c7594f9a0..b3129d1d9 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class IssueStatusesControllerTest < Redmine::ControllerTest
- fixtures :issue_statuses, :issues, :users, :trackers, :workflows
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 643345eac..2ed9ac9ea 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -20,34 +20,6 @@
require_relative '../test_helper'
class IssuesControllerTest < Redmine::ControllerTest
- fixtures :projects,
- :users, :email_addresses, :user_preferences,
- :roles,
- :members,
- :member_roles,
- :issues,
- :issue_statuses,
- :issue_relations,
- :versions,
- :trackers,
- :projects_trackers,
- :issue_categories,
- :enabled_modules,
- :enumerations,
- :attachments,
- :workflows,
- :custom_fields,
- :custom_values,
- :custom_fields_projects,
- :custom_fields_trackers,
- :time_entries,
- :journals,
- :journal_details,
- :queries,
- :repositories,
- :changesets,
- :watchers, :groups_users
-
include Redmine::I18n
def setup
diff --git a/test/functional/issues_controller_transaction_test.rb b/test/functional/issues_controller_transaction_test.rb
index 5f7d5ba6b..3677ebf86 100644
--- a/test/functional/issues_controller_transaction_test.rb
+++ b/test/functional/issues_controller_transaction_test.rb
@@ -22,30 +22,6 @@ require 'issues_controller'
class IssuesControllerTransactionTest < Redmine::ControllerTest
tests IssuesController
- fixtures :projects,
- :users,
- :roles,
- :members,
- :member_roles,
- :issues,
- :issue_statuses,
- :versions,
- :trackers,
- :projects_trackers,
- :issue_categories,
- :enabled_modules,
- :enumerations,
- :attachments,
- :workflows,
- :custom_fields,
- :custom_values,
- :custom_fields_projects,
- :custom_fields_trackers,
- :time_entries,
- :journals,
- :journal_details,
- :queries
-
self.use_transactional_tests = false
def setup
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index c19872134..3955ef861 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -21,19 +21,6 @@ require_relative '../test_helper'
class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
tests IssuesController
- fixtures :projects,
- :users, :email_addresses, :user_preferences,
- :roles,
- :members,
- :member_roles,
- :issue_statuses,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :enumerations,
- :workflows,
- :custom_fields, :custom_fields_trackers
-
def setup
CustomField.destroy_all
Issue.delete_all
diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb
index 26419e33b..f6549910a 100644
--- a/test/functional/journals_controller_test.rb
+++ b/test/functional/journals_controller_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class JournalsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :members, :member_roles, :roles,
- :issues, :journals, :journal_details, :enabled_modules,
- :trackers, :issue_statuses, :enumerations, :custom_fields,
- :custom_values, :custom_fields_projects, :projects_trackers
-
def setup
User.current = nil
end
diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb
index 16eb1fbe2..b27f3dc8a 100644
--- a/test/functional/mail_handler_controller_test.rb
+++ b/test/functional/mail_handler_controller_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class MailHandlerControllerTest < Redmine::ControllerTest
- fixtures :users, :email_addresses, :projects, :enabled_modules,
- :roles, :members, :member_roles, :issues, :issue_statuses,
- :trackers, :projects_trackers, :enumerations, :versions
-
FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures/mail_handler'
def setup
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb
index e97999f13..7e1d96dca 100644
--- a/test/functional/members_controller_test.rb
+++ b/test/functional/members_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class MembersControllerTest < Redmine::ControllerTest
- fixtures :projects, :members, :member_roles, :roles, :users
-
def setup
User.current = nil
@request.session[:user_id] = 2
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index 494628b8c..74b9a3070 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class MessagesControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles, :boards, :messages, :enabled_modules,
- :watchers
-
def setup
User.current = nil
end
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb
index b311854f1..342c97a3d 100644
--- a/test/functional/my_controller_test.rb
+++ b/test/functional/my_controller_test.rb
@@ -20,12 +20,6 @@
require_relative '../test_helper'
class MyControllerTest < Redmine::ControllerTest
- fixtures :users, :email_addresses, :user_preferences,
- :roles, :projects, :members, :member_roles,
- :issues, :issue_statuses, :trackers, :enumerations,
- :custom_fields, :auth_sources, :queries, :enabled_modules,
- :journals, :projects_trackers, :issue_categories
-
def setup
@request.session[:user_id] = 2
end
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index fbd609d1e..f1ddfff71 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class NewsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :enabled_modules, :news, :comments,
- :attachments, :user_preferences
-
def setup
User.current = nil
end
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index 49df91dd3..0dc537ccf 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class PreviewsControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :journals, :journal_details,
- :news
-
def test_preview_new_issue_description
@request.session[:user_id] = 2
post(
diff --git a/test/functional/principal_memberships_controller_test.rb b/test/functional/principal_memberships_controller_test.rb
index 35eb3b665..fe6c1bf1c 100644
--- a/test/functional/principal_memberships_controller_test.rb
+++ b/test/functional/principal_memberships_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class PrincipalMembershipsControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
-
def setup
@request.session[:user_id] = 1
end
diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb
index 1d6d4b5b6..95130db14 100644
--- a/test/functional/project_enumerations_controller_test.rb
+++ b/test/functional/project_enumerations_controller_test.rb
@@ -20,17 +20,6 @@
require_relative '../test_helper'
class ProjectEnumerationsControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :custom_fields, :custom_fields_projects,
- :custom_fields_trackers, :custom_values,
- :time_entries
-
self.use_transactional_tests = false
def setup
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 41b8fb6b9..88851262d 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -20,14 +20,6 @@
require_relative '../test_helper'
class ProjectsControllerTest < Redmine::ControllerTest
- fixtures :projects, :versions, :users, :email_addresses, :roles, :members,
- :member_roles, :issues, :journals, :journal_details,
- :trackers, :projects_trackers, :issue_statuses,
- :enabled_modules, :enumerations, :boards, :messages,
- :attachments, :custom_fields, :custom_values, :time_entries,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :roles, :queries, :issue_categories
-
include Redmine::I18n
def setup
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb
index 7c8b5cd9a..28423366e 100644
--- a/test/functional/queries_controller_test.rb
+++ b/test/functional/queries_controller_test.rb
@@ -20,13 +20,6 @@
require_relative '../test_helper'
class QueriesControllerTest < Redmine::ControllerTest
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :members, :member_roles, :roles,
- :trackers, :issue_statuses, :issue_categories, :enumerations, :versions,
- :issues, :custom_fields, :custom_values,
- :queries
-
def setup
User.current = nil
end
diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb
index a68c13536..96a56feeb 100644
--- a/test/functional/reports_controller_test.rb
+++ b/test/functional/reports_controller_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class ReportsControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :versions,
- :workflows
-
def test_get_issue_report
get(
:issue_report,
diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb
index cf1cb52c2..2122bf3b9 100644
--- a/test/functional/repositories_bazaar_controller_test.rb
+++ b/test/functional/repositories_bazaar_controller_test.rb
@@ -22,9 +22,6 @@ require_relative '../test_helper'
class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :repositories, :enabled_modules
-
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
REPOSITORY_PATH_TRUNK = File.join(REPOSITORY_PATH, "trunk")
PRJ_ID = 3
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index e73066809..beae44f68 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class RepositoriesControllerTest < Redmine::RepositoryControllerTest
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
- :repositories, :issues, :issue_statuses, :changesets, :changes,
- :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
-
def setup
super
User.current = nil
diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb
index 9c0e50526..558e58d0a 100644
--- a/test/functional/repositories_cvs_controller_test.rb
+++ b/test/functional/repositories_cvs_controller_test.rb
@@ -22,9 +22,6 @@ require_relative '../test_helper'
class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :repositories, :enabled_modules
-
REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s
REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
# CVS module
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index 0bcb690f3..fea63bcea 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -22,9 +22,6 @@ require_relative '../test_helper'
class RepositoriesFilesystemControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :repositories, :enabled_modules
-
REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
PRJ_ID = 3
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index 9fecaf8a0..32fa90e29 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -22,9 +22,6 @@ require_relative '../test_helper'
class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :repositories, :enabled_modules
-
REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
PRJ_ID = 3
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index 9e0d398b1..4af2fcf99 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -22,9 +22,6 @@ require_relative '../test_helper'
class RepositoriesMercurialControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :repositories, :enabled_modules
-
REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s
PRJ_ID = 3
NUM_REV = 43
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index 7b32fa1f7..60dd213e4 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -22,10 +22,6 @@ require_relative '../test_helper'
class RepositoriesSubversionControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
- :repositories, :issues, :issue_statuses, :changesets, :changes,
- :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
-
PRJ_ID = 3
NUM_REV = 16
diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb
index 0918be6f0..c343b9bd6 100644
--- a/test/functional/roles_controller_test.rb
+++ b/test/functional/roles_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RolesControllerTest < Redmine::ControllerTest
- fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb
index d9a397343..1a624c3c7 100644
--- a/test/functional/search_controller_test.rb
+++ b/test/functional/search_controller_test.rb
@@ -20,15 +20,6 @@
require_relative '../test_helper'
class SearchControllerTest < Redmine::ControllerTest
- fixtures :projects, :projects_trackers,
- :enabled_modules, :roles, :users, :members, :member_roles,
- :issues, :trackers, :issue_statuses, :enumerations,
- :issue_categories, :workflows,
- :custom_fields, :custom_values,
- :custom_fields_projects, :custom_fields_trackers,
- :repositories, :changesets,
- :user_preferences
-
def setup
User.current = nil
end
diff --git a/test/functional/search_custom_fields_visibility_test.rb b/test/functional/search_custom_fields_visibility_test.rb
index e79f9664e..3308792dc 100644
--- a/test/functional/search_custom_fields_visibility_test.rb
+++ b/test/functional/search_custom_fields_visibility_test.rb
@@ -21,19 +21,6 @@ require_relative '../test_helper'
class SearchCustomFieldsVisibilityTest < Redmine::ControllerTest
tests SearchController
- fixtures :projects,
- :users,
- :roles,
- :members,
- :member_roles,
- :issue_statuses,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :enumerations,
- :workflows,
- :custom_fields, :custom_fields_trackers
-
def setup
field_attributes = {:field_format => 'string', :is_for_all => true, :is_filter => true, :searchable => true, :trackers => Tracker.all}
@fields = []
diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb
index cc09ad6cd..a6171f311 100644
--- a/test/functional/sessions_controller_test.rb
+++ b/test/functional/sessions_controller_test.rb
@@ -23,8 +23,6 @@ class SessionsControllerTest < Redmine::ControllerTest
include Redmine::I18n
tests WelcomeController
- fixtures :users, :email_addresses
-
def setup
Rails.application.config.redmine_verify_sessions = true
end
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index 3c013146e..e1b155a92 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class SettingsControllerTest < Redmine::ControllerTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :users, :email_addresses
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb
index 17e03b133..7c4bab6a2 100644
--- a/test/functional/sys_controller_test.rb
+++ b/test/functional/sys_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class SysControllerTest < Redmine::ControllerTest
- fixtures :projects, :repositories, :enabled_modules
-
def setup
Setting.sys_api_enabled = '1'
Setting.enabled_scm = %w(Subversion Git)
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 93b4c271b..bc0dfebb9 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -20,13 +20,6 @@
require_relative '../test_helper'
class TimelogControllerTest < Redmine::ControllerTest
- fixtures :projects, :enabled_modules, :roles, :members,
- :member_roles, :issues, :time_entries, :users, :email_addresses,
- :trackers, :enumerations, :issue_statuses,
- :custom_fields, :custom_values,
- :projects_trackers, :custom_fields_trackers,
- :custom_fields_projects, :issue_categories, :versions
-
include Redmine::I18n
def setup
diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb
index 0daf90a22..87023b864 100644
--- a/test/functional/timelog_custom_fields_visibility_test.rb
+++ b/test/functional/timelog_custom_fields_visibility_test.rb
@@ -21,19 +21,6 @@ require_relative '../test_helper'
class TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest
tests TimelogController
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :issues, :issue_statuses,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :time_entries, :enumerations,
- :workflows,
- :custom_fields, :custom_values, :custom_fields_trackers
-
def test_index_should_show_visible_custom_fields_only
prepare_test_data
diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb
index 0433442dd..b203d07c2 100644
--- a/test/functional/timelog_report_test.rb
+++ b/test/functional/timelog_report_test.rb
@@ -22,13 +22,6 @@ require_relative '../test_helper'
class TimelogReportTest < Redmine::ControllerTest
tests TimelogController
- fixtures :projects, :enabled_modules, :roles, :members, :member_roles,
- :email_addresses,
- :issues, :time_entries, :users, :trackers, :enumerations,
- :issue_statuses, :custom_fields, :custom_values,
- :projects_trackers, :custom_fields_trackers,
- :custom_fields_projects
-
include Redmine::I18n
def setup
diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb
index 61364fc07..f3f614198 100644
--- a/test/functional/trackers_controller_test.rb
+++ b/test/functional/trackers_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class TrackersControllerTest < Redmine::ControllerTest
- fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses, :enumerations;
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 207c8afa5..ee7256086 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -22,13 +22,6 @@ require_relative '../test_helper'
class UsersControllerTest < Redmine::ControllerTest
include Redmine::I18n
- fixtures :users, :user_preferences, :email_addresses, :projects, :members, :member_roles, :roles,
- :custom_fields, :custom_values, :groups_users,
- :auth_sources,
- :enabled_modules,
- :issues, :issue_statuses,
- :trackers
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 0bd7019da..405e6480b 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -21,13 +21,6 @@ require_relative '../test_helper'
class VersionsControllerTest < Redmine::ControllerTest
include Redmine::I18n
- fixtures :projects, :enabled_modules,
- :trackers, :projects_trackers,
- :versions, :issue_statuses, :issue_categories, :enumerations,
- :issues,
- :users, :email_addresses,
- :roles, :members, :member_roles
-
def setup
User.current = nil
end
diff --git a/test/functional/versions_custom_fields_visibility_test.rb b/test/functional/versions_custom_fields_visibility_test.rb
index 2e0c15451..1d07bc376 100644
--- a/test/functional/versions_custom_fields_visibility_test.rb
+++ b/test/functional/versions_custom_fields_visibility_test.rb
@@ -21,18 +21,6 @@ require_relative '../test_helper'
class VersionsCustomFieldsVisibilityTest < Redmine::ControllerTest
tests VersionsController
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :issue_statuses,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :versions,
- :custom_fields, :custom_values, :custom_fields_trackers
-
def test_show_should_display_only_custom_fields_visible_to_user
cf1 = VersionCustomField.create!(:name => 'cf1', :field_format => 'string')
cf2 = VersionCustomField.create!(:name => 'cf2', :field_format => 'string', :visible => false, :role_ids => [1])
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb
index c256673fa..c73b84702 100644
--- a/test/functional/watchers_controller_test.rb
+++ b/test/functional/watchers_controller_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class WatchersControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
- :issues, :trackers, :projects_trackers, :issue_statuses, :enumerations, :watchers,
- :boards, :messages, :wikis, :wiki_pages
-
def setup
User.current = nil
end
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb
index fde599383..ba1a30235 100644
--- a/test/functional/welcome_controller_test.rb
+++ b/test/functional/welcome_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WelcomeControllerTest < Redmine::ControllerTest
- fixtures :projects, :news, :users, :members, :roles, :member_roles, :enabled_modules
-
def setup
Setting.default_language = 'en'
User.current = nil
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 9d94f5c20..04b687531 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class WikiControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :enabled_modules, :wikis, :wiki_pages, :wiki_contents,
- :wiki_content_versions, :attachments,
- :issues, :issue_statuses, :trackers, :watchers
-
def setup
User.current = nil
end
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb
index 1f5bf8948..20ce56f27 100644
--- a/test/functional/wikis_controller_test.rb
+++ b/test/functional/wikis_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WikisControllerTest < Redmine::ControllerTest
- fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis
-
def setup
User.current = nil
end
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index 36fb311d9..b30559d80 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WorkflowsControllerTest < Redmine::ControllerTest
- fixtures :roles, :trackers, :workflows, :users, :issue_statuses, :custom_fields
-
def setup
User.current = nil
@request.session[:user_id] = 1 # admin
diff --git a/test/helpers/activities_helper_test.rb b/test/helpers/activities_helper_test.rb
index 032237bbe..6884dfda3 100644
--- a/test/helpers/activities_helper_test.rb
+++ b/test/helpers/activities_helper_test.rb
@@ -22,8 +22,6 @@ require_relative '../test_helper'
class ActivitiesHelperTest < Redmine::HelperTest
include ActivitiesHelper
- fixtures :projects, :members, :users
-
class MockEvent
attr_reader :event_datetime, :event_group, :name
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 3d3861f66..9f2eb8405 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -23,17 +23,6 @@ class ApplicationHelperTest < Redmine::HelperTest
include ERB::Util
include AvatarsHelper
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :members, :member_roles, :roles,
- :repositories, :changesets,
- :projects_trackers,
- :trackers, :issue_statuses, :issues, :versions, :documents, :journals,
- :wikis, :wiki_pages, :wiki_contents,
- :boards, :messages, :news,
- :attachments, :enumerations,
- :custom_values, :custom_fields, :custom_fields_projects
-
def setup
super
set_tmp_attachments_directory
diff --git a/test/helpers/avatars_helper_test.rb b/test/helpers/avatars_helper_test.rb
index d9d87dd10..f407ae09e 100644
--- a/test/helpers/avatars_helper_test.rb
+++ b/test/helpers/avatars_helper_test.rb
@@ -23,8 +23,6 @@ class AvatarsHelperTest < Redmine::HelperTest
include ERB::Util
include AvatarsHelper
- fixtures :users, :email_addresses
-
def setup
Setting.gravatar_enabled = '1'
end
diff --git a/test/helpers/groups_helper_test.rb b/test/helpers/groups_helper_test.rb
index 66abc9808..998c5c295 100644
--- a/test/helpers/groups_helper_test.rb
+++ b/test/helpers/groups_helper_test.rb
@@ -24,8 +24,6 @@ class GroupsHelperTest < Redmine::HelperTest
include GroupsHelper
include AvatarsHelper
- fixtures :users
-
def test_render_principals_for_new_group_users
group = Group.generate!
diff --git a/test/helpers/icons_helper_test.rb b/test/helpers/icons_helper_test.rb
index 01fffd4ca..ab0b58db4 100644
--- a/test/helpers/icons_helper_test.rb
+++ b/test/helpers/icons_helper_test.rb
@@ -22,8 +22,6 @@ require_relative '../test_helper'
class IconsHelperTest < Redmine::HelperTest
include IconsHelper
- fixtures :users
-
def test_sprite_icon_should_return_svg_with_defaults
expected = %r{<svg class="s18 icon-svg" aria-hidden="true"><use href="/assets/icons-\w+.svg#icon--edit"></use></svg>$}
icon = sprite_icon('edit')
diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb
index fd469b986..9745459ce 100644
--- a/test/helpers/issues_helper_test.rb
+++ b/test/helpers/issues_helper_test.rb
@@ -24,17 +24,6 @@ class IssuesHelperTest < Redmine::HelperTest
include CustomFieldsHelper
include ERB::Util
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :custom_fields,
- :attachments,
- :versions, :workflows
-
def test_issue_heading
assert_equal "Bug #1", issue_heading(Issue.find(1))
end
diff --git a/test/helpers/journals_helper_test.rb b/test/helpers/journals_helper_test.rb
index b9d73ef64..355d5ec6f 100644
--- a/test/helpers/journals_helper_test.rb
+++ b/test/helpers/journals_helper_test.rb
@@ -22,16 +22,6 @@ require_relative '../test_helper'
class JournalsHelperTest < Redmine::HelperTest
include JournalsHelper
- fixtures :projects, :trackers, :issue_statuses, :issues, :journals,
- :enumerations, :issue_categories,
- :projects_trackers,
- :users, :roles, :member_roles, :members,
- :enabled_modules,
- :custom_fields,
- :attachments,
- :versions,
- :journal_details
-
def test_journal_thumbnail_attachments_should_return_thumbnailable_attachments
skip unless convert_installed?
set_tmp_attachments_directory
diff --git a/test/helpers/members_helper_test.rb b/test/helpers/members_helper_test.rb
index a3120711c..645ec9979 100644
--- a/test/helpers/members_helper_test.rb
+++ b/test/helpers/members_helper_test.rb
@@ -24,9 +24,6 @@ class MembersHelperTest < Redmine::HelperTest
include MembersHelper
include AvatarsHelper
- fixtures :projects, :users, :members, :member_roles,
- :trackers, :issue_statuses
-
def test_render_principals_for_new_members
project = Project.generate!
diff --git a/test/helpers/projects_helper_test.rb b/test/helpers/projects_helper_test.rb
index dc6438bc3..7f15324fe 100644
--- a/test/helpers/projects_helper_test.rb
+++ b/test/helpers/projects_helper_test.rb
@@ -23,15 +23,6 @@ class ProjectsHelperTest < Redmine::HelperTest
include ProjectsHelper
include ERB::Util
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :versions,
- :projects_trackers,
- :member_roles,
- :members,
- :groups_users,
- :enabled_modules
-
def test_link_to_version_within_project
@project = Project.find(2)
User.current = User.find(1)
diff --git a/test/helpers/projects_queries_helper_test.rb b/test/helpers/projects_queries_helper_test.rb
index e3423e212..0fad912c3 100644
--- a/test/helpers/projects_queries_helper_test.rb
+++ b/test/helpers/projects_queries_helper_test.rb
@@ -22,9 +22,6 @@ require_relative '../test_helper'
class ProjectsQueriesHelperTest < Redmine::HelperTest
include ProjectsQueriesHelper
- fixtures :projects, :enabled_modules,
- :custom_fields, :custom_values
-
def test_csv_value
c_status = QueryColumn.new(:status)
c_parent_id = QueryColumn.new(:parent_id)
diff --git a/test/helpers/queries_helper_test.rb b/test/helpers/queries_helper_test.rb
index 8a124a42d..b22bfcb27 100644
--- a/test/helpers/queries_helper_test.rb
+++ b/test/helpers/queries_helper_test.rb
@@ -22,14 +22,6 @@ require_relative '../test_helper'
class QueriesHelperTest < Redmine::HelperTest
include QueriesHelper
- fixtures :projects, :enabled_modules, :users, :members,
- :member_roles, :roles, :trackers, :issue_statuses,
- :issue_categories, :enumerations, :issues,
- :watchers, :custom_fields, :custom_values, :versions,
- :queries,
- :projects_trackers,
- :custom_fields_trackers
-
def test_filters_options_for_select_should_have_a_blank_option
options = filters_options_for_select(IssueQuery.new)
assert_select_in options, 'option[value=""]'
diff --git a/test/helpers/reports_helper_test.rb b/test/helpers/reports_helper_test.rb
index 9b3ac8a26..15e471400 100644
--- a/test/helpers/reports_helper_test.rb
+++ b/test/helpers/reports_helper_test.rb
@@ -22,8 +22,6 @@ require_relative '../test_helper'
class ReportsHlperTest < Redmine::HelperTest
include ReportsHelper
- fixtures :projects, :users
-
def test_aggregate_path_for_spacified_row
project = Project.find(1)
field = 'assigned_to_id'
diff --git a/test/helpers/routes_helper_test.rb b/test/helpers/routes_helper_test.rb
index 6bca90cf8..7c9c2b349 100644
--- a/test/helpers/routes_helper_test.rb
+++ b/test/helpers/routes_helper_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RoutesHelperTest < Redmine::HelperTest
- fixtures :projects, :issues
-
def test_time_entries_path
assert_equal '/projects/ecookbook/time_entries', _time_entries_path(Project.find(1), nil)
assert_equal '/time_entries', _time_entries_path(nil, nil)
diff --git a/test/helpers/timelog_helper_test.rb b/test/helpers/timelog_helper_test.rb
index e550ae194..1d9690abb 100644
--- a/test/helpers/timelog_helper_test.rb
+++ b/test/helpers/timelog_helper_test.rb
@@ -25,14 +25,6 @@ class TimelogHelperTest < Redmine::HelperTest
include ActionView::Helpers::DateHelper
include ERB::Util
- fixtures :projects, :roles, :enabled_modules, :users,
- :repositories, :changesets,
- :trackers, :issue_statuses, :issues, :versions, :documents,
- :wikis, :wiki_pages, :wiki_contents,
- :boards, :messages,
- :attachments,
- :enumerations
-
def test_activities_collection_for_select_options_should_return_array_of_activity_names_and_ids
activities = activity_collection_for_select_options
assert activities.include?(["Design", 9])
diff --git a/test/helpers/version_helper_test.rb b/test/helpers/version_helper_test.rb
index 5edc8b9ff..c4f23af66 100644
--- a/test/helpers/version_helper_test.rb
+++ b/test/helpers/version_helper_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class VersionsHelperTest < Redmine::HelperTest
- fixtures :projects, :versions, :enabled_modules,
- :users, :members, :roles, :member_roles,
- :trackers, :projects_trackers,
- :issue_statuses
-
def test_version_filtered_issues_path_sharing_none
version = Version.new(:name => 'test', :sharing => 'none')
version.project = Project.find(5)
diff --git a/test/helpers/watchers_helper_test.rb b/test/helpers/watchers_helper_test.rb
index 1d29d33d5..c59e8e25d 100644
--- a/test/helpers/watchers_helper_test.rb
+++ b/test/helpers/watchers_helper_test.rb
@@ -24,8 +24,6 @@ class WatchersHelperTest < Redmine::HelperTest
include AvatarsHelper
include ERB::Util
- fixtures :users, :issues
-
test '#watcher_link with a non-watched object' do
expected = link_to(
sprite_icon("fav", "Watch"),
diff --git a/test/helpers/wiki_helper_test.rb b/test/helpers/wiki_helper_test.rb
index eda1bfe1a..5d7c201f7 100644
--- a/test/helpers/wiki_helper_test.rb
+++ b/test/helpers/wiki_helper_test.rb
@@ -22,10 +22,6 @@ require_relative '../test_helper'
class WikiHelperTest < Redmine::HelperTest
include WikiHelper
- fixtures :projects, :users,
- :roles, :member_roles, :members,
- :enabled_modules, :wikis, :wiki_pages
-
def test_wiki_page_edit_cancel_path_for_new_page_without_parent_should_be_wiki_index
wiki = Wiki.find(1)
page = WikiPage.new(:wiki => wiki)
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index e40584152..efdc8238f 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class AccountTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses, :roles
-
def test_login
get "/my/page"
assert_redirected_to "/login?back_url=http%3A%2F%2Fwww.example.com%2Fmy%2Fpage"
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index 1b9a029bb..8c0965126 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -20,14 +20,6 @@
require_relative '../test_helper'
class AdminTest < Redmine::IntegrationTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
def test_add_user
log_user("admin", "admin")
get "/users/new"
diff --git a/test/integration/api_test/api_test.rb b/test/integration/api_test/api_test.rb
index d076e81eb..7d848c42d 100644
--- a/test/integration/api_test/api_test.rb
+++ b/test/integration/api_test/api_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
- fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
-
def test_api_should_work_with_protect_from_forgery
ActionController::Base.allow_forgery_protection = true
assert_difference('User.count') do
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb
index a3d4ef21a..9bb079c3d 100644
--- a/test/integration/api_test/attachments_test.rb
+++ b/test/integration/api_test/attachments_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :attachments
-
def setup
super
set_fixtures_attachments_directory
diff --git a/test/integration/api_test/authentication_test.rb b/test/integration/api_test/authentication_test.rb
index aeb5fed15..23641b53a 100644
--- a/test/integration/api_test/authentication_test.rb
+++ b/test/integration/api_test/authentication_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base
- fixtures :users
-
def teardown
User.current = nil
end
diff --git a/test/integration/api_test/custom_fields_attribute_test.rb b/test/integration/api_test/custom_fields_attribute_test.rb
index ad7521aa0..0abd643bb 100644
--- a/test/integration/api_test/custom_fields_attribute_test.rb
+++ b/test/integration/api_test/custom_fields_attribute_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base
- fixtures :users
-
def test_integer_custom_fields_should_accept_strings
field = GroupCustomField.generate!(:field_format => 'int')
post(
diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb
index 436fe7171..0df56e59a 100644
--- a/test/integration/api_test/custom_fields_test.rb
+++ b/test/integration/api_test/custom_fields_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base
- fixtures :users, :custom_fields
-
test "GET /custom_fields.xml should return custom fields" do
get '/custom_fields.xml', :headers => credentials('admin')
assert_response :success
diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb
index 187d345c2..c95f8fb61 100644
--- a/test/integration/api_test/disabled_rest_api_test.rb
+++ b/test/integration/api_test/disabled_rest_api_test.rb
@@ -20,14 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
def setup
Setting.rest_api_enabled = '0'
Setting.login_required = '1'
diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb
index c47dc83fe..25200f7a9 100644
--- a/test/integration/api_test/enumerations_test.rb
+++ b/test/integration/api_test/enumerations_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base
- fixtures :enumerations
-
test "GET /enumerations/issue_priorities.xml should return priorities" do
get '/enumerations/issue_priorities.xml'
assert_response :success
diff --git a/test/integration/api_test/files_test.rb b/test/integration/api_test/files_test.rb
index 1a66d445f..10361aab3 100644
--- a/test/integration/api_test/files_test.rb
+++ b/test/integration/api_test/files_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::FilesTest < Redmine::ApiTest::Base
- fixtures :projects,
- :users,
- :members,
- :roles,
- :member_roles,
- :enabled_modules,
- :attachments,
- :versions
-
test "GET /projects/:project_id/files.xml should return the list of uploaded files" do
get '/projects/1/files.xml', :headers => credentials('jsmith')
assert_response :success
diff --git a/test/integration/api_test/groups_test.rb b/test/integration/api_test/groups_test.rb
index fa4cbb205..5c39364b1 100644
--- a/test/integration/api_test/groups_test.rb
+++ b/test/integration/api_test/groups_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base
- fixtures :users, :groups_users, :email_addresses
-
test "GET /groups.xml should require authentication" do
get '/groups.xml'
assert_response :unauthorized
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb
index 676c8d013..cd9c43a44 100644
--- a/test/integration/api_test/issue_categories_test.rb
+++ b/test/integration/api_test/issue_categories_test.rb
@@ -20,12 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
- fixtures :projects, :users, :issue_categories, :issues,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
test "GET /projects/:project_id/issue_categories.xml should return the issue categories" do
get '/projects/1/issue_categories.xml', :headers => credentials('jsmith')
assert_response :success
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb
index 3ac12e276..9885c3939 100644
--- a/test/integration/api_test/issue_relations_test.rb
+++ b/test/integration/api_test/issue_relations_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :issue_relations
-
test "GET /issues/:issue_id/relations.xml should return issue relations" do
get '/issues/9/relations.xml', :headers => credentials('jsmith')
diff --git a/test/integration/api_test/issue_statuses_test.rb b/test/integration/api_test/issue_statuses_test.rb
index c7a3cd85c..d59cdcc4f 100644
--- a/test/integration/api_test/issue_statuses_test.rb
+++ b/test/integration/api_test/issue_statuses_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base
- fixtures :issue_statuses
-
test "GET /issue_statuses.xml should return issue statuses" do
get '/issue_statuses.xml'
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 02840b2ef..df558d797 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -20,34 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
- fixtures(
- :projects,
- :users,
- :user_preferences,
- :roles,
- :members,
- :member_roles,
- :issues,
- :issue_statuses,
- :issue_relations,
- :versions,
- :trackers,
- :projects_trackers,
- :issue_categories,
- :enabled_modules,
- :enumerations,
- :attachments,
- :workflows,
- :custom_fields,
- :custom_values,
- :custom_fields_projects,
- :custom_fields_trackers,
- :time_entries,
- :journals,
- :journal_details,
- :queries,
- :attachments)
-
test "GET /issues.xml should contain metadata" do
get '/issues.xml'
assert_select 'issues[type=array][total_count][limit="25"][offset="0"]'
diff --git a/test/integration/api_test/journals_test.rb b/test/integration/api_test/journals_test.rb
index 48c6e90d0..9777f90fa 100644
--- a/test/integration/api_test/journals_test.rb
+++ b/test/integration/api_test/journals_test.rb
@@ -20,13 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::JournalTest < Redmine::ApiTest::Base
- fixtures :projects, :issues, :issue_statuses, :journals, :journal_details,
- :issue_relations, :workflows,
- :users, :members, :member_roles, :roles, :enabled_modules,
- :groups_users, :email_addresses,
- :enumerations,
- :projects_trackers, :trackers, :custom_fields
-
test "PUT /journals/:id.xml with valid parameters should update the journal notes" do
put(
'/journals/1.xml',
diff --git a/test/integration/api_test/jsonp_test.rb b/test/integration/api_test/jsonp_test.rb
index fa7ab9b53..b441d8b1b 100644
--- a/test/integration/api_test/jsonp_test.rb
+++ b/test/integration/api_test/jsonp_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::JsonpTest < Redmine::ApiTest::Base
- fixtures :trackers
-
def test_should_ignore_jsonp_callback_with_jsonp_disabled
with_settings :jsonp_enabled => '0' do
get '/trackers.json?jsonp=handler'
diff --git a/test/integration/api_test/memberships_test.rb b/test/integration/api_test/memberships_test.rb
index 0b7c70608..baab2ebb9 100644
--- a/test/integration/api_test/memberships_test.rb
+++ b/test/integration/api_test/memberships_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::MembershipsTest < Redmine::ApiTest::Base
- fixtures :projects, :users, :roles, :members, :member_roles
-
test "GET /projects/:project_id/memberships.xml should return memberships" do
get '/projects/1/memberships.xml', :headers => credentials('jsmith')
diff --git a/test/integration/api_test/my_test.rb b/test/integration/api_test/my_test.rb
index 81a952b2e..e9bbbd78f 100644
--- a/test/integration/api_test/my_test.rb
+++ b/test/integration/api_test/my_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
- fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
-
test "GET /my/account.json should return user" do
assert Setting.rest_api_enabled?
get '/my/account.json', :headers => credentials('dlopper', 'foo')
diff --git a/test/integration/api_test/news_test.rb b/test/integration/api_test/news_test.rb
index 1a3bb824e..bd9f2bb6d 100644
--- a/test/integration/api_test/news_test.rb
+++ b/test/integration/api_test/news_test.rb
@@ -20,17 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :news,
- :comments,
- :attachments
-
test "GET /news.xml should return news" do
get '/news.xml'
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index 0c75d1fb4..f5263690a 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -21,11 +21,6 @@ require_relative '../../test_helper'
class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
include ActiveJob::TestHelper
- fixtures :projects, :versions, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
- :trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages,
- :attachments, :custom_fields, :custom_values, :custom_fields_projects, :time_entries, :issue_categories,
- :queries
-
def setup
super
set_tmp_attachments_directory
diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb
index 1476e8dbf..e74352567 100644
--- a/test/integration/api_test/queries_test.rb
+++ b/test/integration/api_test/queries_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :queries
-
test "GET /queries.xml should return queries" do
get '/queries.xml'
diff --git a/test/integration/api_test/repositories_test.rb b/test/integration/api_test/repositories_test.rb
index ae59cd8ca..3d8a2679e 100644
--- a/test/integration/api_test/repositories_test.rb
+++ b/test/integration/api_test/repositories_test.rb
@@ -20,12 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::RepositoriesTest < Redmine::ApiTest::Base
- fixtures :users,
- :projects, :enabled_modules,
- :members, :roles, :member_roles,
- :issues,
- :repositories, :changesets, :changes
-
test 'POST /projects/:id/repository/:repository_id/revisions/:rev/issues.xml should add related issue' do
changeset = Changeset.find(103)
assert_equal [], changeset.issue_ids
diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb
index 0cd4fd72b..c9dee4bb0 100644
--- a/test/integration/api_test/roles_test.rb
+++ b/test/integration/api_test/roles_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base
- fixtures :roles
-
test "GET /roles.xml should return the roles" do
get '/roles.xml'
diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb
index 3226f76c9..dd6ac658b 100644
--- a/test/integration/api_test/search_test.rb
+++ b/test/integration/api_test/search_test.rb
@@ -20,14 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::SearchTest < Redmine::ApiTest::Base
- fixtures :projects, :projects_trackers,
- :enabled_modules, :roles, :users, :members, :member_roles,
- :issues, :trackers, :issue_statuses, :enumerations,
- :workflows,
- :custom_fields, :custom_values,
- :custom_fields_projects, :custom_fields_trackers,
- :repositories, :changesets
-
test "GET /search.xml should return xml content" do
get '/search.xml'
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb
index 66f7cf335..abd634506 100644
--- a/test/integration/api_test/time_entries_test.rb
+++ b/test/integration/api_test/time_entries_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :time_entries
-
test "GET /time_entries.xml should return time entries" do
get '/time_entries.xml', :headers => credentials('jsmith')
assert_response :success
diff --git a/test/integration/api_test/trackers_test.rb b/test/integration/api_test/trackers_test.rb
index b9eeafafd..5770e3ed6 100644
--- a/test/integration/api_test/trackers_test.rb
+++ b/test/integration/api_test/trackers_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::TrackersTest < Redmine::ApiTest::Base
- fixtures :trackers
-
test "GET /trackers.xml should return trackers" do
Tracker.find(2).update_attribute :core_fields, %w[assigned_to_id due_date]
get '/trackers.xml'
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb
index e977379c0..94ecb52cf 100644
--- a/test/integration/api_test/users_test.rb
+++ b/test/integration/api_test/users_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
- fixtures :users, :groups_users, :email_addresses, :members, :member_roles, :roles, :projects, :auth_sources
-
test "GET /users.xml should return users" do
users = User.active.order('login')
users.last.update(twofa_scheme: 'totp')
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb
index 96d70095c..012739928 100644
--- a/test/integration/api_test/versions_test.rb
+++ b/test/integration/api_test/versions_test.rb
@@ -20,17 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :versions,
- :wikis, :wiki_pages,
- :time_entries
-
test "GET /projects/:project_id/versions.xml should return project versions" do
get '/projects/1/versions.xml'
diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb
index 2aa60304c..f57db5880 100644
--- a/test/integration/api_test/wiki_pages_test.rb
+++ b/test/integration/api_test/wiki_pages_test.rb
@@ -20,10 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
- fixtures :projects, :users, :roles, :members, :member_roles,
- :enabled_modules, :wikis, :wiki_pages, :wiki_contents,
- :wiki_content_versions, :attachments
-
test "GET /projects/:project_id/wiki/index.xml should return wiki pages" do
get '/projects/ecookbook/wiki/index.xml'
assert_response :ok
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb
index 77c96d89b..bbdedd6d8 100644
--- a/test/integration/application_test.rb
+++ b/test/integration/application_test.rb
@@ -22,14 +22,6 @@ require_relative '../test_helper'
class ApplicationTest < Redmine::IntegrationTest
include Redmine::I18n
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
def test_set_localization
Setting.default_language = 'en'
diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb
index 910ec6b2c..f6a30d061 100644
--- a/test/integration/attachments_test.rb
+++ b/test/integration/attachments_test.rb
@@ -20,15 +20,6 @@
require_relative '../test_helper'
class AttachmentsTest < Redmine::IntegrationTest
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :roles, :members, :member_roles,
- :trackers, :projects_trackers,
- :issues, :issue_statuses, :enumerations,
- :attachments,
- :wiki_content_versions, :wiki_contents, :wiki_pages,
- :journals, :journal_details
-
def test_upload_should_set_default_content_type
log_user('jsmith', 'jsmith')
assert_difference 'Attachment.count' do
diff --git a/test/integration/feeds_test.rb b/test/integration/feeds_test.rb
index c5e1162bd..dffcd9c12 100644
--- a/test/integration/feeds_test.rb
+++ b/test/integration/feeds_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class FeedsTest < Redmine::IntegrationTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers, :enabled_modules,
- :roles, :member_roles, :members
-
def test_feeds_should_include_icon_tag
get '/projects.atom'
assert_response :success
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index fca3d3981..ac8d432f1 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -20,23 +20,6 @@
require_relative '../test_helper'
class IssuesTest < Redmine::IntegrationTest
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :issue_statuses,
- :issues,
- :enumerations,
- :custom_fields,
- :custom_values,
- :custom_fields_trackers, :custom_fields_projects,
- :attachments,
- :issue_categories
-
# create an issue
def test_add_issue
log_user('jsmith', 'jsmith')
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index bc1a67e01..a1c918ae0 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -20,14 +20,6 @@
require_relative '../test_helper'
class LayoutTest < Redmine::IntegrationTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
test "browsing to a missing page should render the base layout" do
get "/users/100000000"
diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb
index 0d3590ff4..d6007d7e5 100644
--- a/test/integration/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb
@@ -20,22 +20,6 @@
require_relative '../../../../test_helper'
class AttachmentFieldFormatTest < Redmine::IntegrationTest
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :issue_statuses,
- :issues,
- :enumerations,
- :custom_fields,
- :custom_values,
- :custom_fields_trackers,
- :attachments
-
def setup
User.current = nil
set_tmp_attachments_directory
diff --git a/test/integration/lib/redmine/hook_test.rb b/test/integration/lib/redmine/hook_test.rb
index 922d0267e..61255ffeb 100644
--- a/test/integration/lib/redmine/hook_test.rb
+++ b/test/integration/lib/redmine/hook_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../test_helper'
class HookTest < Redmine::IntegrationTest
- fixtures :users, :roles, :projects, :members, :member_roles
-
# Hooks that are manually registered later
class ProjectBasedTemplate < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context)
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb
index 4070cdb0c..1e7c1f17f 100644
--- a/test/integration/lib/redmine/menu_manager_test.rb
+++ b/test/integration/lib/redmine/menu_manager_test.rb
@@ -22,15 +22,6 @@ require_relative '../../../test_helper'
class MenuManagerTest < Redmine::IntegrationTest
include Redmine::I18n
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :repositories
-
def test_project_menu_with_specific_locale
get '/projects/ecookbook/issues',
:headers => {'HTTP_ACCEPT_LANGUAGE' => 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'}
diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb
index 3da9da707..35a39cfce 100644
--- a/test/integration/projects_test.rb
+++ b/test/integration/projects_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class ProjectsTest < Redmine::IntegrationTest
- fixtures :projects, :users, :members, :enabled_modules
-
def test_archive_project
subproject = Project.find(1).children.first
log_user("admin", "admin")
diff --git a/test/integration/repositories_git_test.rb b/test/integration/repositories_git_test.rb
index 8a33c356e..20d643449 100644
--- a/test/integration/repositories_git_test.rb
+++ b/test/integration/repositories_git_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class RepositoriesGitTest < Redmine::IntegrationTest
- fixtures :projects, :users, :roles, :members, :member_roles,
- :repositories, :enabled_modules
-
REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
PRJ_ID = 3
diff --git a/test/integration/sessions_test.rb b/test/integration/sessions_test.rb
index e34184cb7..553cf8f99 100644
--- a/test/integration/sessions_test.rb
+++ b/test/integration/sessions_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class SessionsTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses, :roles
-
def setup
Rails.application.config.redmine_verify_sessions = true
end
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb
index 68a312b83..228e527ed 100644
--- a/test/integration/sudo_mode_test.rb
+++ b/test/integration/sudo_mode_test.rb
@@ -3,8 +3,6 @@
require_relative '../test_helper'
class SudoModeTest < Redmine::IntegrationTest
- fixtures :projects, :members, :member_roles, :roles, :users, :email_addresses
-
def setup
Redmine::SudoMode.stubs(:enabled?).returns(true)
end
diff --git a/test/integration/twofa_test.rb b/test/integration/twofa_test.rb
index 4b33fdfe6..7aa8ec4ac 100644
--- a/test/integration/twofa_test.rb
+++ b/test/integration/twofa_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class TwofaTest < Redmine::IntegrationTest
- fixtures :projects, :users, :email_addresses
-
test "should require twofa setup when configured" do
with_settings twofa: "2" do
assert Setting.twofa_required?
diff --git a/test/integration/users_test.rb b/test/integration/users_test.rb
index 35672e053..115b40ae8 100644
--- a/test/integration/users_test.rb
+++ b/test/integration/users_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class UsersTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses
-
def test_destroy_should_not_accept_get_requests
log_user('admin', 'admin')
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb
index 3097e73e5..8aa6d64be 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class WelcomeTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses,
- :projects, :enabled_modules, :members, :member_roles, :roles
-
def test_robots
Project.find(3).update_attribute :status, Project::STATUS_CLOSED
diff --git a/test/integration/wiki_test.rb b/test/integration/wiki_test.rb
index e91a9748d..92850c216 100644
--- a/test/integration/wiki_test.rb
+++ b/test/integration/wiki_test.rb
@@ -20,18 +20,6 @@
require_relative '../test_helper'
class WikiIntegrationTest < Redmine::IntegrationTest
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :wikis,
- :wiki_pages,
- :wiki_contents
-
def test_updating_a_renamed_page
log_user('jsmith', 'jsmith')
diff --git a/test/system/copy_to_clipboard_test.rb b/test/system/copy_to_clipboard_test.rb
index 30a041ae0..3ff947b0b 100644
--- a/test/system/copy_to_clipboard_test.rb
+++ b/test/system/copy_to_clipboard_test.rb
@@ -20,12 +20,6 @@
require_relative '../application_system_test_case'
class CopyToClipboardSystemTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details, :versions,
- :workflows, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def test_copy_issue_url_to_clipboard
log_user('jsmith', 'jsmith')
visit 'issues/1'
diff --git a/test/system/custom_field_enumerations_test.rb b/test/system/custom_field_enumerations_test.rb
index a1a09c2b5..dca021583 100644
--- a/test/system/custom_field_enumerations_test.rb
+++ b/test/system/custom_field_enumerations_test.rb
@@ -20,11 +20,6 @@
require_relative '../application_system_test_case'
class CustomFieldEnumerationsTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details
-
def test_add_empty_value
custom_field = IssueCustomField.generate!(field_format: 'enumeration')
log_user('admin', 'admin')
diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb
index 97f90e55f..4b2271b79 100644
--- a/test/system/inline_autocomplete_test.rb
+++ b/test/system/inline_autocomplete_test.rb
@@ -20,13 +20,6 @@
require_relative '../application_system_test_case'
class InlineAutocompleteSystemTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details, :versions,
- :workflows, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :boards, :messages
-
def test_inline_autocomplete_for_issues
log_user('jsmith', 'jsmith')
visit 'issues/new'
diff --git a/test/system/issues_import_test.rb b/test/system/issues_import_test.rb
index fd25715e6..d0b1c064e 100644
--- a/test/system/issues_import_test.rb
+++ b/test/system/issues_import_test.rb
@@ -20,11 +20,6 @@
require_relative '../application_system_test_case'
class IssuesImportTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details
-
def test_import_issues_without_failures
log_user('jsmith', 'jsmith')
visit '/issues'
diff --git a/test/system/issues_reply_test.rb b/test/system/issues_reply_test.rb
index 7ab5e21c2..86cd21f16 100644
--- a/test/system/issues_reply_test.rb
+++ b/test/system/issues_reply_test.rb
@@ -20,13 +20,6 @@
require_relative '../application_system_test_case'
class IssuesReplyTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules,
- :issue_statuses, :issues, :issue_categories,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details, :versions,
- :workflows
-
def test_reply_to_issue
with_text_formatting 'common_mark' do
within '.issue.details' do
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index be0744157..c23cbd27c 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -20,13 +20,6 @@
require_relative '../application_system_test_case'
class IssuesSystemTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules,
- :issue_statuses, :issues, :issue_categories,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details, :versions,
- :workflows
-
def test_create_issue
log_user('jsmith', 'jsmith')
visit '/projects/ecookbook/issues/new'
diff --git a/test/system/keyboard_shortcuts_test.rb b/test/system/keyboard_shortcuts_test.rb
index 2c98567c0..51772d678 100644
--- a/test/system/keyboard_shortcuts_test.rb
+++ b/test/system/keyboard_shortcuts_test.rb
@@ -20,12 +20,6 @@
require_relative '../application_system_test_case'
class KeyboardShortcutsTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details, :versions,
- :workflows
-
def test_keyboard_shortcuts_to_switch_edit_preview_tabs
log_user('jsmith', 'jsmith')
visit 'issues/new'
diff --git a/test/system/messages_test.rb b/test/system/messages_test.rb
index 9a53a3f42..66a29a3a7 100644
--- a/test/system/messages_test.rb
+++ b/test/system/messages_test.rb
@@ -20,11 +20,6 @@
require_relative '../application_system_test_case'
class MessagesTest < ApplicationSystemTestCase
- fixtures :projects, :users, :roles, :members, :member_roles,
- :enabled_modules, :enumerations,
- :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :boards, :messages, :attachments
-
def test_reply_to_topic_message
with_text_formatting 'common_mark' do
within '#content > .contextual' do
diff --git a/test/system/my_page_test.rb b/test/system/my_page_test.rb
index fee76af0f..cc60a056b 100644
--- a/test/system/my_page_test.rb
+++ b/test/system/my_page_test.rb
@@ -20,11 +20,6 @@
require_relative '../application_system_test_case'
class MyPageTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details
-
def test_sort_assigned_issues
preferences = User.find(2).pref
preferences.my_page_layout = {'top' => ['issuesassignedtome']}
diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb
index 275cba791..81acbe0f5 100644
--- a/test/system/quick_jump_test.rb
+++ b/test/system/quick_jump_test.rb
@@ -20,11 +20,6 @@
require_relative '../application_system_test_case'
class QuickJumpTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :journals, :journal_details
-
def test_project_quick_jump
log_user 'jsmith', 'jsmith'
visit '/'
diff --git a/test/system/repositories_test.rb b/test/system/repositories_test.rb
index e799d0e42..c617e0a5e 100644
--- a/test/system/repositories_test.rb
+++ b/test/system/repositories_test.rb
@@ -20,10 +20,6 @@
require_relative '../application_system_test_case'
class RepositoriesTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
- :repositories, :issues, :issue_statuses, :changesets, :changes,
- :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
-
def setup
@project = Project.find(1)
@repository = Repository::Subversion.create(:project => @project,
diff --git a/test/system/sudo_mode_test.rb b/test/system/sudo_mode_test.rb
index 20904edb6..73e755acd 100644
--- a/test/system/sudo_mode_test.rb
+++ b/test/system/sudo_mode_test.rb
@@ -20,8 +20,6 @@
require_relative '../application_system_test_case'
class SudoModeSystemTest < ApplicationSystemTestCase
- fixtures :users, :email_addresses
-
def setup
Redmine::SudoMode.stubs(:enabled?).returns(true)
super
diff --git a/test/system/timelog_test.rb b/test/system/timelog_test.rb
index 94b86f592..57c521096 100644
--- a/test/system/timelog_test.rb
+++ b/test/system/timelog_test.rb
@@ -22,11 +22,6 @@ require_relative '../application_system_test_case'
Capybara.default_max_wait_time = 2
class TimelogTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules, :issue_statuses, :issues,
- :enumerations, :custom_fields, :custom_values, :custom_fields_trackers,
- :time_entries
-
def test_changing_project_should_update_activities
project = Project.find(1)
TimeEntryActivity.create!(:name => 'Design', :project => project, :parent => TimeEntryActivity.find_by_name('Design'), :active => false)
diff --git a/test/system/versions_test.rb b/test/system/versions_test.rb
index 0f6c68c24..6944f0e7a 100644
--- a/test/system/versions_test.rb
+++ b/test/system/versions_test.rb
@@ -20,11 +20,6 @@
require_relative '../application_system_test_case'
class VersionsSystemTest < ApplicationSystemTestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
- :trackers, :projects_trackers, :enabled_modules,
- :issue_statuses, :issues, :issue_categories,
- :enumerations, :versions, :workflows
-
def test_create_from_issue_form_with_file_custom_field
VersionCustomField.generate!(:field_format => 'attachment')
diff --git a/test/test_helper.rb b/test/test_helper.rb
index ca4b3fe47..aa7e43b01 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -56,6 +56,8 @@ class ActiveSupport::TestCase
include ActionDispatch::TestProcess
+ fixtures :all
+
self.use_transactional_tests = true
self.use_instantiated_fixtures = false
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb
index 9ea960f70..3575e98e6 100644
--- a/test/unit/activity_test.rb
+++ b/test/unit/activity_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class ActivityTest < ActiveSupport::TestCase
- fixtures :projects, :versions, :attachments, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
- :trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages, :time_entries,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def setup
User.current = nil
@project = Project.find(1)
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index 6af8b79d7..3200e46cd 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class AttachmentTest < ActiveSupport::TestCase
- fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles,
- :enabled_modules, :issues, :trackers, :attachments
-
def setup
User.current = nil
set_tmp_attachments_directory
diff --git a/test/unit/attachment_transaction_test.rb b/test/unit/attachment_transaction_test.rb
index d18b8157a..5b7543856 100644
--- a/test/unit/attachment_transaction_test.rb
+++ b/test/unit/attachment_transaction_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class AttachmentTest < ActiveSupport::TestCase
- fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles,
- :enabled_modules, :issues, :trackers, :attachments
-
self.use_transactional_tests = false
def setup
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index e270ff906..a3a257b67 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -21,8 +21,6 @@ require_relative '../test_helper'
class AuthSourceLdapTest < ActiveSupport::TestCase
include Redmine::I18n
- fixtures :auth_sources
-
def setup
User.current = nil
end
diff --git a/test/unit/board_test.rb b/test/unit/board_test.rb
index d792bb443..9f9b6e38b 100644
--- a/test/unit/board_test.rb
+++ b/test/unit/board_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class BoardTest < ActiveSupport::TestCase
- fixtures :projects, :boards, :messages, :attachments, :watchers
-
include Redmine::I18n
def setup
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index af7e31531..ca1e010e3 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -20,19 +20,6 @@
require_relative '../test_helper'
class ChangesetTest < ActiveSupport::TestCase
- fixtures :projects, :repositories, :versions,
- :issues, :issue_statuses, :issue_categories,
- :watchers,
- :journals, :journal_details,
- :workflows,
- :changesets, :changes,
- :enumerations,
- :custom_fields, :custom_values,
- :users, :members, :member_roles,
- :email_addresses,
- :trackers, :projects_trackers,
- :enabled_modules, :roles
-
def setup
User.current = nil
end
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb
index 2a2ba19fa..a41001a89 100644
--- a/test/unit/comment_test.rb
+++ b/test/unit/comment_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class CommentTest < ActiveSupport::TestCase
- fixtures :users, :email_addresses, :news, :comments, :projects, :enabled_modules,
- :user_preferences, :roles, :members, :member_roles
-
def setup
User.current = nil
@jsmith = User.find(2)
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb
index 92d4d33af..608176559 100644
--- a/test/unit/custom_field_test.rb
+++ b/test/unit/custom_field_test.rb
@@ -20,10 +20,6 @@
require_relative '../test_helper'
class CustomFieldTest < ActiveSupport::TestCase
- fixtures :custom_fields, :roles, :projects,
- :trackers, :issue_statuses,
- :issues, :users
-
def setup
User.current = nil
end
diff --git a/test/unit/custom_field_user_format_test.rb b/test/unit/custom_field_user_format_test.rb
index f972daf67..d72012d65 100644
--- a/test/unit/custom_field_user_format_test.rb
+++ b/test/unit/custom_field_user_format_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class CustomFieldUserFormatTest < ActiveSupport::TestCase
- fixtures :custom_fields, :projects, :members, :users, :member_roles, :trackers, :issues
-
def setup
User.current = nil
@field = IssueCustomField.create!(:name => 'Tester', :field_format => 'user')
diff --git a/test/unit/custom_field_version_format_test.rb b/test/unit/custom_field_version_format_test.rb
index 219f3343a..998d287df 100644
--- a/test/unit/custom_field_version_format_test.rb
+++ b/test/unit/custom_field_version_format_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class CustomFieldVersionFormatTest < ActiveSupport::TestCase
- fixtures :custom_fields, :projects, :members, :users, :member_roles, :trackers, :issues, :versions
-
def setup
User.current = nil
@field = IssueCustomField.create!(:name => 'Tester', :field_format => 'version')
diff --git a/test/unit/custom_value_test.rb b/test/unit/custom_value_test.rb
index c76382a53..a1f2e69a0 100644
--- a/test/unit/custom_value_test.rb
+++ b/test/unit/custom_value_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class CustomValueTest < ActiveSupport::TestCase
- fixtures :custom_fields, :custom_values, :users
-
def setup
User.current = nil
end
diff --git a/test/unit/default_data_test.rb b/test/unit/default_data_test.rb
index 0f4e08aa3..d5affab1d 100644
--- a/test/unit/default_data_test.rb
+++ b/test/unit/default_data_test.rb
@@ -21,8 +21,6 @@ require_relative '../test_helper'
class DefaultDataTest < ActiveSupport::TestCase
include Redmine::I18n
- fixtures :roles
-
def setup
User.current = nil
end
diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb
index 8d6f9fc5e..c9df1b306 100644
--- a/test/unit/document_category_test.rb
+++ b/test/unit/document_category_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class DocumentCategoryTest < ActiveSupport::TestCase
- fixtures :enumerations, :documents, :issues
-
def setup
User.current = nil
end
diff --git a/test/unit/document_test.rb b/test/unit/document_test.rb
index 0011e53c3..02c2769cb 100644
--- a/test/unit/document_test.rb
+++ b/test/unit/document_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class DocumentTest < ActiveSupport::TestCase
- fixtures :projects, :enumerations, :documents, :attachments,
- :enabled_modules,
- :users, :email_addresses, :members, :member_roles, :roles,
- :groups_users
-
def setup
User.current = nil
end
diff --git a/test/unit/email_address_test.rb b/test/unit/email_address_test.rb
index a25a0bed0..9d57beb97 100644
--- a/test/unit/email_address_test.rb
+++ b/test/unit/email_address_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class EmailAddressTest < ActiveSupport::TestCase
- fixtures :users
-
def setup
User.current = nil
end
diff --git a/test/unit/enabled_module_test.rb b/test/unit/enabled_module_test.rb
index 50bd49066..7446b2c27 100644
--- a/test/unit/enabled_module_test.rb
+++ b/test/unit/enabled_module_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class EnabledModuleTest < ActiveSupport::TestCase
- fixtures :projects, :trackers, :issue_statuses, :wikis
-
def setup
User.current = nil
end
diff --git a/test/unit/enumeration_test.rb b/test/unit/enumeration_test.rb
index c92024e5c..e7b2c0826 100644
--- a/test/unit/enumeration_test.rb
+++ b/test/unit/enumeration_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class EnumerationTest < ActiveSupport::TestCase
- fixtures :enumerations, :issues, :custom_fields, :custom_values
-
def setup
User.current = nil
end
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb
index 59923927c..1fd836ca3 100644
--- a/test/unit/group_test.rb
+++ b/test/unit/group_test.rb
@@ -20,13 +20,6 @@
require_relative '../test_helper'
class GroupTest < ActiveSupport::TestCase
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users,
- :projects_trackers,
- :roles, :member_roles, :members,
- :groups_users,
- :watchers
-
include Redmine::I18n
def setup
diff --git a/test/unit/issue_category_test.rb b/test/unit/issue_category_test.rb
index 0df90d132..60107232c 100644
--- a/test/unit/issue_category_test.rb
+++ b/test/unit/issue_category_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class IssueCategoryTest < ActiveSupport::TestCase
- fixtures :issue_categories, :issues, :users, :groups_users
-
def setup
User.current = nil
@category = IssueCategory.find(1)
diff --git a/test/unit/issue_custom_field_test.rb b/test/unit/issue_custom_field_test.rb
index cf55bc252..d8c9c790a 100644
--- a/test/unit/issue_custom_field_test.rb
+++ b/test/unit/issue_custom_field_test.rb
@@ -22,8 +22,6 @@ require_relative '../test_helper'
class IssueCustomFieldTest < ActiveSupport::TestCase
include Redmine::I18n
- fixtures :roles
-
def setup
User.current = nil
end
diff --git a/test/unit/issue_import_test.rb b/test/unit/issue_import_test.rb
index a47dd6e23..de4207045 100644
--- a/test/unit/issue_import_test.rb
+++ b/test/unit/issue_import_test.rb
@@ -20,20 +20,6 @@
require_relative '../test_helper'
class IssueImportTest < ActiveSupport::TestCase
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :roles, :members, :member_roles,
- :issues, :issue_statuses,
- :trackers, :projects_trackers,
- :versions,
- :issue_categories,
- :enumerations,
- :workflows,
- :custom_fields,
- :custom_values,
- :custom_fields_projects,
- :custom_fields_trackers
-
include Redmine::I18n
def setup
diff --git a/test/unit/issue_nested_set_concurrency_test.rb b/test/unit/issue_nested_set_concurrency_test.rb
index 561252a3d..2692ce99f 100644
--- a/test/unit/issue_nested_set_concurrency_test.rb
+++ b/test/unit/issue_nested_set_concurrency_test.rb
@@ -20,12 +20,6 @@
require_relative '../test_helper'
class IssueNestedSetConcurrencyTest < ActiveSupport::TestCase
- fixtures :projects, :users,
- :trackers, :projects_trackers,
- :enabled_modules,
- :issue_statuses,
- :enumerations
-
self.use_transactional_tests = false
def setup
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb
index 2e21a5150..43d0f7110 100644
--- a/test/unit/issue_nested_set_test.rb
+++ b/test/unit/issue_nested_set_test.rb
@@ -20,12 +20,6 @@
require_relative '../test_helper'
class IssueNestedSetTest < ActiveSupport::TestCase
- fixtures :projects, :users, :roles,
- :trackers, :projects_trackers,
- :issue_statuses, :issue_categories, :issue_relations,
- :enumerations,
- :issues
-
def setup
User.current = nil
end
diff --git a/test/unit/issue_priority_test.rb b/test/unit/issue_priority_test.rb
index 693f73a44..e076afe67 100644
--- a/test/unit/issue_priority_test.rb
+++ b/test/unit/issue_priority_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class IssuePriorityTest < ActiveSupport::TestCase
- fixtures :enumerations, :issues
-
def setup
User.current = nil
end
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb
index 198dd94ad..5e0009344 100644
--- a/test/unit/issue_relation_test.rb
+++ b/test/unit/issue_relation_test.rb
@@ -20,19 +20,6 @@
require_relative '../test_helper'
class IssueRelationTest < ActiveSupport::TestCase
- fixtures :projects,
- :users,
- :roles,
- :members,
- :member_roles,
- :issues,
- :issue_statuses,
- :issue_relations,
- :enabled_modules,
- :enumerations,
- :trackers,
- :projects_trackers
-
include Redmine::I18n
def setup
diff --git a/test/unit/issue_scopes_test.rb b/test/unit/issue_scopes_test.rb
index b5bcafcf7..077a411f0 100644
--- a/test/unit/issue_scopes_test.rb
+++ b/test/unit/issue_scopes_test.rb
@@ -20,14 +20,6 @@
require_relative '../test_helper'
class IssueScopesTest < ActiveSupport::TestCase
- fixtures :projects, :users, :members, :member_roles, :roles,
- :groups_users,
- :trackers, :projects_trackers,
- :enabled_modules,
- :versions, :issue_statuses, :issue_categories, :enumerations,
- :issues,
- :custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values
-
def setup
User.current = nil
end
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb
index ce5922f6a..aa9629943 100644
--- a/test/unit/issue_status_test.rb
+++ b/test/unit/issue_status_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class IssueStatusTest < ActiveSupport::TestCase
- fixtures :projects, :users, :members, :member_roles, :roles,
- :groups_users,
- :trackers, :projects_trackers,
- :enabled_modules,
- :versions,
- :issue_statuses, :issue_categories, :issue_relations, :workflows,
- :enumerations,
- :issues, :journals, :journal_details,
- :custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values
-
def setup
User.current = nil
end
diff --git a/test/unit/issue_subtasking_test.rb b/test/unit/issue_subtasking_test.rb
index 9e4d22194..4a0f2cbd9 100644
--- a/test/unit/issue_subtasking_test.rb
+++ b/test/unit/issue_subtasking_test.rb
@@ -20,13 +20,6 @@
require_relative '../test_helper'
class IssueSubtaskingTest < ActiveSupport::TestCase
- fixtures :projects, :users, :roles, :members, :member_roles,
- :trackers, :projects_trackers,
- :issue_statuses, :issue_categories, :enumerations,
- :issues,
- :enabled_modules,
- :workflows
-
def setup
User.current = nil
end
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 28bb33964..76189f681 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -20,18 +20,6 @@
require_relative '../test_helper'
class IssueTest < ActiveSupport::TestCase
- fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles,
- :groups_users,
- :trackers, :projects_trackers,
- :enabled_modules,
- :versions,
- :issue_statuses, :issue_categories, :issue_relations, :workflows,
- :enumerations,
- :issues, :journals, :journal_details,
- :watchers,
- :custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values,
- :time_entries
-
include Redmine::I18n
def setup
diff --git a/test/unit/issue_transaction_test.rb b/test/unit/issue_transaction_test.rb
index dbbc162f1..dacbf4dad 100644
--- a/test/unit/issue_transaction_test.rb
+++ b/test/unit/issue_transaction_test.rb
@@ -20,15 +20,6 @@
require_relative '../test_helper'
class IssueTransactionTest < ActiveSupport::TestCase
- fixtures :projects, :users, :members, :member_roles, :roles,
- :trackers, :projects_trackers,
- :versions,
- :issue_statuses, :issue_categories, :issue_relations, :workflows,
- :enumerations,
- :issues,
- :custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values,
- :time_entries
-
self.use_transactional_tests = false
def setup
diff --git a/test/unit/jobs/destroy_project_job_test.rb b/test/unit/jobs/destroy_project_job_test.rb
index 667f0c864..e2a4fa28d 100644
--- a/test/unit/jobs/destroy_project_job_test.rb
+++ b/test/unit/jobs/destroy_project_job_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class DestroyProjectJobTest < ActiveJob::TestCase
- fixtures :users, :projects, :email_addresses
-
setup do
@project = Project.find 1
@user = User.find_by_admin true
diff --git a/test/unit/jobs/destroy_projects_job_test.rb b/test/unit/jobs/destroy_projects_job_test.rb
index 01a83fc03..a6b0f072b 100644
--- a/test/unit/jobs/destroy_projects_job_test.rb
+++ b/test/unit/jobs/destroy_projects_job_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class DestroyProjectsJobTest < ActiveJob::TestCase
- fixtures :users, :projects, :email_addresses
-
setup do
@projects = Project.where(id: [1, 2]).order(:id).to_a
@user = User.find_by_admin true
diff --git a/test/unit/journal_observer_test.rb b/test/unit/journal_observer_test.rb
index ed6931893..8189d836a 100644
--- a/test/unit/journal_observer_test.rb
+++ b/test/unit/journal_observer_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class JournalObserverTest < ActiveSupport::TestCase
- fixtures :issues, :issue_statuses, :journals, :journal_details, :projects,
- :projects_trackers, :trackers, :enabled_modules, :enumerations,
- :users, :user_preferences, :email_addresses, :roles, :members, :member_roles,
- :versions, :issue_categories, :attachments
-
def setup
User.current = nil
ActionMailer::Base.deliveries.clear
diff --git a/test/unit/journal_test.rb b/test/unit/journal_test.rb
index bab30833c..b8571858a 100644
--- a/test/unit/journal_test.rb
+++ b/test/unit/journal_test.rb
@@ -20,13 +20,6 @@
require_relative '../test_helper'
class JournalTest < ActiveSupport::TestCase
- fixtures :projects, :issues, :issue_statuses, :journals, :journal_details,
- :issue_relations, :workflows,
- :users, :members, :member_roles, :roles, :enabled_modules,
- :groups_users, :email_addresses,
- :enumerations,
- :projects_trackers, :trackers, :custom_fields
-
def setup
@journal = Journal.find 1
User.current = nil
diff --git a/test/unit/lib/redmine/acts/mentionable_test.rb b/test/unit/lib/redmine/acts/mentionable_test.rb
index 8471c51af..00a7df159 100644
--- a/test/unit/lib/redmine/acts/mentionable_test.rb
+++ b/test/unit/lib/redmine/acts/mentionable_test.rb
@@ -20,14 +20,6 @@
require_relative '../../../../test_helper'
class Redmine::Acts::MentionableTest < ActiveSupport::TestCase
- fixtures :projects, :users, :email_addresses, :members, :member_roles, :roles,
- :groups_users,
- :trackers, :projects_trackers,
- :enabled_modules,
- :issue_statuses, :issue_categories, :issue_relations, :workflows,
- :enumerations,
- :issues
-
def test_mentioned_users_with_user_mention
to_test = %w(@dlopper @dlopper! @dlopper? @dlopper. @dlopper,) # rubocop:disable Lint/PercentStringArray
diff --git a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
index 27e1c55c9..af2868bb6 100644
--- a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
+++ b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../../test_helper'
class Redmine::Acts::PositionedWithScopeTest < ActiveSupport::TestCase
- fixtures :projects, :boards
-
def test_create_should_default_to_last_position
b = Board.generate!(:project_id => 1)
assert_equal 3, b.reload.position
diff --git a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
index 9b7f6f1ee..6cf23607d 100644
--- a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
+++ b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../../test_helper'
class Redmine::Acts::PositionedWithoutScopeTest < ActiveSupport::TestCase
- fixtures :trackers, :issue_statuses
-
def test_create_should_default_to_last_position
t = Tracker.generate
t.save!
diff --git a/test/unit/lib/redmine/ciphering_test.rb b/test/unit/lib/redmine/ciphering_test.rb
index f9a699677..261b2004a 100644
--- a/test/unit/lib/redmine/ciphering_test.rb
+++ b/test/unit/lib/redmine/ciphering_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../test_helper'
class Redmine::CipheringTest < ActiveSupport::TestCase
- fixtures :auth_sources
-
def test_password_should_be_encrypted
Redmine::Configuration.with 'database_cipher_key' => 'secret' do
plaintext_password = "THIS_IS_A_32_BYTES_LONG_PASSWORD"
diff --git a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
index fa8f6616a..4227d2073 100644
--- a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
@@ -20,9 +20,6 @@
require_relative '../../../../../test_helper'
class IssuesPdfHelperTest < ActiveSupport::TestCase
- fixtures :users, :projects, :roles, :members, :member_roles,
- :enabled_modules, :issues, :trackers, :enumerations, :versions
-
include Redmine::Export::PDF::IssuesPdfHelper
def test_fetch_row_values_should_round_float_values
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb
index ca978d224..0db3f470c 100644
--- a/test/unit/lib/redmine/export/pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf_test.rb
@@ -20,9 +20,6 @@
require_relative '../../../../test_helper'
class PdfTest < ActiveSupport::TestCase
- fixtures :users, :projects, :roles, :members, :member_roles,
- :enabled_modules, :issues, :trackers, :attachments
-
def test_fix_text_encoding_nil
assert_equal '', Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(nil, "UTF-8")
assert_equal '', Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(nil, "ISO-8859-1")
diff --git a/test/unit/lib/redmine/export/text/versions_text_helper_test.rb b/test/unit/lib/redmine/export/text/versions_text_helper_test.rb
index b09501d68..5dbbbc515 100644
--- a/test/unit/lib/redmine/export/text/versions_text_helper_test.rb
+++ b/test/unit/lib/redmine/export/text/versions_text_helper_test.rb
@@ -20,9 +20,6 @@
require_relative '../../../../../test_helper'
class VersionsTextHelperTest < ActiveSupport::TestCase
- fixtures :users, :projects, :roles, :members, :member_roles,
- :enabled_modules, :issues, :trackers, :enumerations, :versions
-
include Redmine::I18n
include Redmine::Export::Text::VersionsTextHelper
diff --git a/test/unit/lib/redmine/field_format/attachment_format_test.rb b/test/unit/lib/redmine/field_format/attachment_format_test.rb
index b4291b214..b0acf6d69 100644
--- a/test/unit/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/unit/lib/redmine/field_format/attachment_format_test.rb
@@ -23,8 +23,6 @@ require 'redmine/field_format'
class Redmine::AttachmentFieldFormatTest < ActionView::TestCase
include Redmine::I18n
- fixtures :users
-
def setup
User.current = nil
set_language_if_valid 'en'
diff --git a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
index 2e696615c..1d973fb72 100644
--- a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
+++ b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
@@ -21,13 +21,6 @@ require_relative '../../../../test_helper'
require 'redmine/field_format'
class AttachmentFormatVisibilityTest < ActionView::TestCase
- fixtures :projects, :enabled_modules, :projects_trackers,
- :roles, :members, :member_roles,
- :users, :email_addresses,
- :trackers, :issue_statuses, :enumerations, :issue_categories,
- :custom_fields, :custom_fields_trackers,
- :versions, :issues
-
def setup
User.current = nil
set_tmp_attachments_directory
diff --git a/test/unit/lib/redmine/field_format/numeric_format_test.rb b/test/unit/lib/redmine/field_format/numeric_format_test.rb
index a3a30cf40..2c9ecdc2e 100644
--- a/test/unit/lib/redmine/field_format/numeric_format_test.rb
+++ b/test/unit/lib/redmine/field_format/numeric_format_test.rb
@@ -21,10 +21,6 @@ require_relative '../../../../test_helper'
require 'redmine/field_format'
class Redmine::NumericFieldFormatTest < ActionView::TestCase
- fixtures :projects, :users, :issue_statuses, :enumerations,
- :trackers, :projects_trackers, :roles, :member_roles,
- :members, :enabled_modules, :issues
-
def setup
User.current = nil
end
diff --git a/test/unit/lib/redmine/field_format/user_field_format_test.rb b/test/unit/lib/redmine/field_format/user_field_format_test.rb
index 15031e97f..2d095a207 100644
--- a/test/unit/lib/redmine/field_format/user_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/user_field_format_test.rb
@@ -21,12 +21,6 @@ require_relative '../../../../test_helper'
require 'redmine/field_format'
class Redmine::UserFieldFormatTest < ActionView::TestCase
- fixtures :projects, :roles, :users, :members, :member_roles,
- :trackers,
- :issue_statuses, :issue_categories, :issue_relations, :workflows,
- :enumerations,
- :custom_fields, :custom_fields_trackers, :custom_fields_projects
-
def setup
User.current = nil
end
diff --git a/test/unit/lib/redmine/field_format/version_field_format_test.rb b/test/unit/lib/redmine/field_format/version_field_format_test.rb
index bd9c57ce7..cd3921845 100644
--- a/test/unit/lib/redmine/field_format/version_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/version_field_format_test.rb
@@ -21,12 +21,6 @@ require_relative '../../../../test_helper'
require 'redmine/field_format'
class Redmine::VersionFieldFormatTest < ActionView::TestCase
- fixtures :projects, :versions, :trackers,
- :roles, :users, :members, :member_roles,
- :issue_statuses, :issue_categories, :issue_relations, :workflows,
- :enumerations, :custom_fields, :custom_fields_trackers,
- :enabled_modules
-
def setup
super
User.current = nil
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb
index 476e54952..4a5c01980 100644
--- a/test/unit/lib/redmine/helpers/gantt_test.rb
+++ b/test/unit/lib/redmine/helpers/gantt_test.rb
@@ -20,9 +20,6 @@
require_relative '../../../../test_helper'
class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
- fixtures :projects, :trackers, :projects_trackers, :issue_statuses,
- :enumerations, :users, :issue_categories
-
include ProjectsHelper
include IssuesHelper
include QueriesHelper
diff --git a/test/unit/lib/redmine/hook_test.rb b/test/unit/lib/redmine/hook_test.rb
index 7fc3e461f..d1f1451d1 100644
--- a/test/unit/lib/redmine/hook_test.rb
+++ b/test/unit/lib/redmine/hook_test.rb
@@ -20,16 +20,6 @@
require_relative '../../../test_helper'
class Redmine::Hook::ManagerTest < ActionView::TestCase
- fixtures :projects, :users, :members, :member_roles, :roles,
- :groups_users,
- :email_addresses,
- :trackers, :projects_trackers,
- :enabled_modules,
- :versions,
- :issue_statuses, :issue_categories, :issue_relations,
- :enumerations,
- :issues
-
# Some hooks that are manually registered in these tests
class TestHook < Redmine::Hook::ViewListener; end
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 cde10c8ba..9e56c419b 100644
--- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
+++ b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
@@ -23,8 +23,6 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
include Redmine::MenuManager::MenuHelper
include ERB::Util
- fixtures :users, :members, :projects, :enabled_modules, :roles, :member_roles
-
def setup
setup_with_controller
# Stub the current menu item in the controller
diff --git a/test/unit/lib/redmine/project_jump_box_test.rb b/test/unit/lib/redmine/project_jump_box_test.rb
index 135f10e51..88c14dbb5 100644
--- a/test/unit/lib/redmine/project_jump_box_test.rb
+++ b/test/unit/lib/redmine/project_jump_box_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../test_helper'
class Redmine::ProjectJumpBoxTest < ActiveSupport::TestCase
- fixtures :users, :projects, :user_preferences, :members, :roles, :member_roles
-
def setup
@user = User.find_by_login 'jsmith'
User.current = @user
diff --git a/test/unit/lib/redmine/quote_reply_helper_test.rb b/test/unit/lib/redmine/quote_reply_helper_test.rb
index 541a59fe6..43adb521b 100644
--- a/test/unit/lib/redmine/quote_reply_helper_test.rb
+++ b/test/unit/lib/redmine/quote_reply_helper_test.rb
@@ -23,8 +23,6 @@ class QuoteReplyHelperTest < ActionView::TestCase
include ERB::Util
include Redmine::QuoteReply::Helper
- fixtures :issues
-
def test_quote_reply
with_locale 'en' do
url = quoted_issue_path(issues(:issues_001))
diff --git a/test/unit/lib/redmine/safe_attributes_test.rb b/test/unit/lib/redmine/safe_attributes_test.rb
index 73891b740..0e53da238 100644
--- a/test/unit/lib/redmine/safe_attributes_test.rb
+++ b/test/unit/lib/redmine/safe_attributes_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../test_helper'
class Redmine::SafeAttributesTest < ActiveSupport::TestCase
- fixtures :users
-
class Base
def attributes=(attrs)
attrs.each do |key, value|
diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb
index 46057f132..4ecc3e62a 100644
--- a/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb
@@ -24,17 +24,6 @@ class Redmine::WikiFormatting::CommonMark::ApplicationHelperTest < Redmine::Help
include ERB::Util
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :members, :member_roles, :roles,
- :repositories, :changesets,
- :projects_trackers,
- :trackers, :issue_statuses, :issues, :versions, :documents, :journals,
- :wikis, :wiki_pages, :wiki_contents,
- :boards, :messages, :news,
- :attachments, :enumerations,
- :custom_values, :custom_fields, :custom_fields_projects
-
def setup
super
set_tmp_attachments_directory
diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
index 782354039..f23c76fdd 100644
--- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
@@ -25,14 +25,6 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest
include ERB::Util
extend ActionView::Helpers::SanitizeHelper::ClassMethods
- fixtures :projects, :roles, :enabled_modules, :users,
- :repositories, :changesets,
- :trackers, :issue_statuses, :issues,
- :versions, :documents,
- :wikis, :wiki_pages, :wiki_contents,
- :boards, :messages,
- :attachments, :enumerations
-
def setup
super
@project = nil
diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb
index 00273f717..a11aba908 100644
--- a/test/unit/lib/redmine/wiki_formatting_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../test_helper'
class Redmine::WikiFormattingTest < ActiveSupport::TestCase
- fixtures :issues
-
def test_textile_formatter
assert_equal Redmine::WikiFormatting::Textile::Formatter, Redmine::WikiFormatting.formatter_for('textile')
assert_equal Redmine::WikiFormatting::Textile::Helper, Redmine::WikiFormatting.helper_for('textile')
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index ff77f3676..e05b64b0c 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class MailHandlerTest < ActiveSupport::TestCase
- fixtures :users, :projects, :enabled_modules, :roles,
- :members, :member_roles, :users,
- :email_addresses, :user_preferences,
- :issues, :issue_statuses,
- :journals, :journal_details,
- :workflows, :trackers, :projects_trackers,
- :versions, :enumerations, :issue_categories,
- :custom_fields, :custom_fields_trackers, :custom_fields_projects, :custom_values,
- :boards, :messages, :watchers, :news, :comments
-
FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures/mail_handler'
def setup
diff --git a/test/unit/mailer_localisation_test.rb b/test/unit/mailer_localisation_test.rb
index a19644a15..4055a29b2 100644
--- a/test/unit/mailer_localisation_test.rb
+++ b/test/unit/mailer_localisation_test.rb
@@ -22,15 +22,6 @@ require_relative '../test_helper'
class MailerLocalisationTest < ActiveSupport::TestCase
include Redmine::I18n
include Rails::Dom::Testing::Assertions
- fixtures :projects, :enabled_modules, :issues, :users, :email_addresses, :user_preferences, :members,
- :member_roles, :roles, :documents, :attachments, :news,
- :tokens, :journals, :journal_details, :changesets,
- :trackers, :projects_trackers,
- :issue_statuses, :enumerations, :messages, :boards, :repositories,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :versions,
- :comments
-
def setup
ActionMailer::Base.deliveries.clear
Setting.plain_text_mail = '0'
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 8d53699f3..792cb7897 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -22,16 +22,6 @@ require_relative '../test_helper'
class MailerTest < ActiveSupport::TestCase
include Redmine::I18n
include Rails::Dom::Testing::Assertions
- fixtures :projects, :enabled_modules, :issues, :users, :email_addresses, :user_preferences, :members,
- :member_roles, :roles, :documents, :attachments, :news,
- :tokens, :journals, :journal_details, :changesets,
- :trackers, :projects_trackers,
- :custom_fields, :custom_fields_trackers,
- :issue_statuses, :enumerations, :messages, :boards, :repositories,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :versions,
- :comments,
- :groups_users, :watchers, :issue_categories
def setup
ActionMailer::Base.deliveries.clear
diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb
index 38a568bbb..a7b1843dc 100644
--- a/test/unit/member_test.rb
+++ b/test/unit/member_test.rb
@@ -20,20 +20,6 @@
require_relative '../test_helper'
class MemberTest < ActiveSupport::TestCase
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :groups_users,
- :watchers,
- :journals, :journal_details,
- :messages,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :boards
-
include Redmine::I18n
def setup
diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb
index a2da6c05a..5f59566b8 100644
--- a/test/unit/message_test.rb
+++ b/test/unit/message_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class MessageTest < ActiveSupport::TestCase
- fixtures :projects, :roles, :members, :member_roles, :boards, :messages,
- :users, :watchers, :enabled_modules
-
def setup
User.current = nil
@board = Board.find(1)
diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb
index 21ae6e218..0e23f8309 100644
--- a/test/unit/news_test.rb
+++ b/test/unit/news_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class NewsTest < ActiveSupport::TestCase
- fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news
-
def valid_news
{:title => 'Test news', :description => 'Lorem ipsum etc', :author => User.first}
end
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb
index 6ec79caec..9eef5bbf3 100644
--- a/test/unit/principal_test.rb
+++ b/test/unit/principal_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class PrincipalTest < ActiveSupport::TestCase
- fixtures :users, :projects, :members, :member_roles, :roles,
- :email_addresses
-
def setup
User.current = nil
end
diff --git a/test/unit/project_copy_test.rb b/test/unit/project_copy_test.rb
index 7f9376d3d..1bfb65cb5 100644
--- a/test/unit/project_copy_test.rb
+++ b/test/unit/project_copy_test.rb
@@ -20,26 +20,6 @@
require_relative '../test_helper'
class ProjectCopyTest < ActiveSupport::TestCase
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :journals, :journal_details,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :custom_fields,
- :custom_fields_projects,
- :custom_fields_trackers,
- :custom_values,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :versions,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :groups_users,
- :boards, :messages,
- :repositories,
- :news, :comments,
- :documents, :attachments
-
def setup
User.current = nil
ProjectCustomField.destroy_all
diff --git a/test/unit/project_members_inheritance_test.rb b/test/unit/project_members_inheritance_test.rb
index ed6b61349..a5f7b3d93 100644
--- a/test/unit/project_members_inheritance_test.rb
+++ b/test/unit/project_members_inheritance_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class ProjectMembersInheritanceTest < ActiveSupport::TestCase
- fixtures :roles, :users,
- :projects, :trackers, :issue_statuses
-
def setup
User.current = nil
@parent = Project.generate!
diff --git a/test/unit/project_query_test.rb b/test/unit/project_query_test.rb
index 156949ea8..3e232f820 100644
--- a/test/unit/project_query_test.rb
+++ b/test/unit/project_query_test.rb
@@ -20,15 +20,6 @@
require_relative '../test_helper'
class ProjectQueryTest < ActiveSupport::TestCase
- fixtures :projects, :users,
- :members, :roles, :member_roles,
- :issue_categories, :enumerations,
- :groups_users,
- :enabled_modules,
- :custom_fields, :custom_values,
- :queries,
- :issues, :journals, :journal_details
-
include Redmine::I18n
def test_filter_values_be_arrays
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index dc7d00fe8..f8b7e64ed 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -20,28 +20,6 @@
require_relative '../test_helper'
class ProjectTest < ActiveSupport::TestCase
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :journals, :journal_details,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :custom_fields,
- :custom_fields_projects,
- :custom_fields_trackers,
- :custom_values,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :versions,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions,
- :groups_users,
- :boards, :messages,
- :repositories,
- :news, :comments,
- :documents,
- :workflows,
- :attachments
-
def setup
@ecookbook = Project.find(1)
@ecookbook_sub1 = Project.find(3)
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index dd3b67928..ff2cef903 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -22,16 +22,6 @@ require_relative '../test_helper'
class QueryTest < ActiveSupport::TestCase
include Redmine::I18n
- fixtures :projects, :enabled_modules, :users, :user_preferences, :members,
- :member_roles, :roles, :trackers, :issue_statuses,
- :issue_categories, :enumerations, :issues,
- :watchers, :custom_fields, :custom_values, :versions,
- :queries,
- :projects_trackers,
- :custom_fields_trackers,
- :workflows, :journals,
- :attachments, :time_entries
-
def setup
User.current = nil
end
diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb
index d75b234a2..5af9e7f13 100644
--- a/test/unit/repository_bazaar_test.rb
+++ b/test/unit/repository_bazaar_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RepositoryBazaarTest < ActiveSupport::TestCase
- fixtures :projects
-
include Redmine::I18n
REPOSITORY_PATH = repository_path('bazaar')
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index 1e5cf467b..af995eac0 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RepositoryCvsTest < ActiveSupport::TestCase
- fixtures :projects
-
include Redmine::I18n
REPOSITORY_PATH = repository_path('cvs')
diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb
index 59c6337b8..24ace388b 100644
--- a/test/unit/repository_filesystem_test.rb
+++ b/test/unit/repository_filesystem_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RepositoryFilesystemTest < ActiveSupport::TestCase
- fixtures :projects
-
include Redmine::I18n
REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb
index 921628a9d..ec1ca5157 100644
--- a/test/unit/repository_git_test.rb
+++ b/test/unit/repository_git_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RepositoryGitTest < ActiveSupport::TestCase
- fixtures :projects, :repositories, :enabled_modules, :users, :roles, :changesets
-
include Redmine::I18n
REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 8c58eea24..861729bac 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RepositoryMercurialTest < ActiveSupport::TestCase
- fixtures :projects
-
include Redmine::I18n
REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s
diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb
index d5953b88b..b4590ce31 100644
--- a/test/unit/repository_subversion_test.rb
+++ b/test/unit/repository_subversion_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RepositorySubversionTest < ActiveSupport::TestCase
- fixtures :projects, :repositories, :enabled_modules, :users, :roles
-
include Redmine::I18n
NUM_REV = 16
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 63aa43d35..53b5e0ee7 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -20,26 +20,6 @@
require_relative '../test_helper'
class RepositoryTest < ActiveSupport::TestCase
- fixtures :projects,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :repositories,
- :issues,
- :issue_statuses,
- :issue_categories,
- :changesets,
- :changes,
- :users,
- :email_addresses,
- :members,
- :member_roles,
- :roles,
- :enumerations,
- :user_preferences,
- :watchers,
- :versions
-
include Redmine::I18n
def setup
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb
index e75edb3b8..21103919f 100644
--- a/test/unit/role_test.rb
+++ b/test/unit/role_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class RoleTest < ActiveSupport::TestCase
- fixtures :roles, :workflows, :trackers, :users
-
def setup
User.current = nil
end
diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb
index 267aba7ef..796cc6a6c 100644
--- a/test/unit/search_test.rb
+++ b/test/unit/search_test.rb
@@ -20,22 +20,6 @@
require_relative '../test_helper'
class SearchTest < ActiveSupport::TestCase
- fixtures :users,
- :members,
- :member_roles,
- :projects,
- :projects_trackers,
- :roles,
- :enabled_modules,
- :issues,
- :trackers,
- :issue_statuses,
- :enumerations,
- :journals,
- :journal_details,
- :repositories,
- :changesets
-
def setup
User.current = nil
@project = Project.find(1)
diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb
index d64dca66d..4ae07cebb 100644
--- a/test/unit/setting_test.rb
+++ b/test/unit/setting_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class SettingTest < ActiveSupport::TestCase
- fixtures :users
-
def setup
User.current = nil
end
diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb
index 282a5661f..3d367d9b6 100644
--- a/test/unit/time_entry_activity_test.rb
+++ b/test/unit/time_entry_activity_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class TimeEntryActivityTest < ActiveSupport::TestCase
- fixtures :enumerations, :time_entries,
- :custom_fields, :custom_values,
- :issues, :projects, :users,
- :members, :roles, :member_roles,
- :trackers, :issue_statuses,
- :projects_trackers,
- :issue_categories,
- :groups_users,
- :enabled_modules
-
include Redmine::I18n
def setup
diff --git a/test/unit/time_entry_custom_field_test.rb b/test/unit/time_entry_custom_field_test.rb
index 3bdcda973..cd967ce29 100644
--- a/test/unit/time_entry_custom_field_test.rb
+++ b/test/unit/time_entry_custom_field_test.rb
@@ -22,8 +22,6 @@ require_relative '../test_helper'
class TimeEntryCustomFieldTest < ActiveSupport::TestCase
include Redmine::I18n
- fixtures :roles, :users, :members, :member_roles, :projects, :enabled_modules, :issues
-
def setup
User.current = nil
end
diff --git a/test/unit/time_entry_import_test.rb b/test/unit/time_entry_import_test.rb
index 08c113251..6805bab85 100644
--- a/test/unit/time_entry_import_test.rb
+++ b/test/unit/time_entry_import_test.rb
@@ -20,18 +20,6 @@
require_relative '../test_helper'
class TimeEntryImportTest < ActiveSupport::TestCase
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :roles, :members, :member_roles,
- :issues, :issue_statuses,
- :trackers, :projects_trackers,
- :versions,
- :issue_categories,
- :enumerations,
- :workflows,
- :custom_fields,
- :custom_values
-
include Redmine::I18n
def setup
diff --git a/test/unit/time_entry_query_test.rb b/test/unit/time_entry_query_test.rb
index 77e125c80..16d4af075 100644
--- a/test/unit/time_entry_query_test.rb
+++ b/test/unit/time_entry_query_test.rb
@@ -20,16 +20,6 @@
require_relative '../test_helper'
class TimeEntryQueryTest < ActiveSupport::TestCase
- fixtures :issues, :projects, :users,
- :members, :roles, :member_roles,
- :trackers, :issue_statuses,
- :projects_trackers,
- :journals, :journal_details,
- :issue_categories, :enumerations,
- :groups_users,
- :enabled_modules,
- :custom_fields, :custom_fields_trackers, :custom_fields_projects
-
def setup
User.current = nil
end
diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb
index 358408c99..6d04619e8 100644
--- a/test/unit/time_entry_test.rb
+++ b/test/unit/time_entry_test.rb
@@ -22,16 +22,6 @@ require_relative '../test_helper'
class TimeEntryTest < ActiveSupport::TestCase
include Redmine::I18n
- fixtures :issues, :projects, :users, :time_entries,
- :members, :roles, :member_roles,
- :trackers, :issue_statuses,
- :projects_trackers,
- :journals, :journal_details,
- :issue_categories, :enumerations,
- :groups_users,
- :enabled_modules,
- :custom_fields, :custom_fields_projects, :custom_values
-
def setup
User.current = nil
end
diff --git a/test/unit/token_test.rb b/test/unit/token_test.rb
index a0801ef90..d40b3a2a1 100644
--- a/test/unit/token_test.rb
+++ b/test/unit/token_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class TokenTest < ActiveSupport::TestCase
- fixtures :tokens, :users, :email_addresses
-
def setup
User.current = nil
end
diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb
index f63a994bf..a9728b9b2 100644
--- a/test/unit/tracker_test.rb
+++ b/test/unit/tracker_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class TrackerTest < ActiveSupport::TestCase
- fixtures :trackers, :workflows, :issue_statuses, :roles, :issues, :custom_fields, :projects, :projects_trackers, :enabled_modules
-
def setup
User.current = nil
end
diff --git a/test/unit/user_import_test.rb b/test/unit/user_import_test.rb
index 2a00f36c9..7acd4db8c 100644
--- a/test/unit/user_import_test.rb
+++ b/test/unit/user_import_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class UserImportTest < ActiveSupport::TestCase
- fixtures :users, :auth_sources, :custom_fields
-
include Redmine::I18n
def setup
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb
index 2b0f606de..1eea63917 100644
--- a/test/unit/user_preference_test.rb
+++ b/test/unit/user_preference_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class UserPreferenceTest < ActiveSupport::TestCase
- fixtures :users, :user_preferences
-
def setup
User.current = nil
end
diff --git a/test/unit/user_query_test.rb b/test/unit/user_query_test.rb
index e2d61a338..1f8ce3464 100644
--- a/test/unit/user_query_test.rb
+++ b/test/unit/user_query_test.rb
@@ -19,9 +19,6 @@
require_relative '../test_helper'
class UserQueryTest < ActiveSupport::TestCase
- fixtures :users, :groups_users, :email_addresses,
- :custom_fields, :custom_values, :auth_sources
-
def test_available_columns_should_include_user_custom_fields
query = UserQuery.new
assert_include :cf_4, query.available_columns.map(&:name)
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 5698a1b8d..ede12e1ce 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -20,18 +20,6 @@
require_relative '../test_helper'
class UserTest < ActiveSupport::TestCase
- fixtures :users, :email_addresses, :members, :projects, :roles, :member_roles, :auth_sources,
- :trackers, :issue_statuses,
- :projects_trackers,
- :watchers,
- :issue_categories, :enumerations, :issues,
- :journals, :journal_details,
- :groups_users,
- :enabled_modules,
- :tokens,
- :user_preferences,
- :custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values
-
include Redmine::I18n
def setup
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index 409f1494c..f65b99f02 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class VersionTest < ActiveSupport::TestCase
- fixtures :projects, :users, :issues, :issue_statuses, :trackers,
- :enumerations, :versions, :projects_trackers,
- :custom_fields, :custom_fields_trackers, :custom_fields_projects,
- :members, :member_roles, :roles, :issue_categories
-
def setup
User.current = nil
end
diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb
index 51a1bd402..1fd853f31 100644
--- a/test/unit/watcher_test.rb
+++ b/test/unit/watcher_test.rb
@@ -20,12 +20,6 @@
require_relative '../test_helper'
class WatcherTest < ActiveSupport::TestCase
- fixtures :projects, :groups_users, :users, :user_preferences, :email_addresses, :members, :member_roles, :roles, :enabled_modules,
- :issues, :issue_statuses, :enumerations, :trackers, :projects_trackers,
- :boards, :messages,
- :wikis, :wiki_pages,
- :watchers
-
def setup
User.current = nil
@user = User.find(1)
diff --git a/test/unit/wiki_content_test.rb b/test/unit/wiki_content_test.rb
index 0e3b95860..3b31f2f36 100644
--- a/test/unit/wiki_content_test.rb
+++ b/test/unit/wiki_content_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class WikiContentTest < ActiveSupport::TestCase
- fixtures :projects, :enabled_modules,
- :users, :members, :member_roles, :roles,
- :email_addresses,
- :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def setup
User.current = nil
@wiki = Wiki.find(1)
diff --git a/test/unit/wiki_content_version_test.rb b/test/unit/wiki_content_version_test.rb
index 057547075..a08dd389a 100644
--- a/test/unit/wiki_content_version_test.rb
+++ b/test/unit/wiki_content_version_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WikiContentVersionTest < ActiveSupport::TestCase
- fixtures :projects, :users, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def setup
User.current = nil
end
diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb
index 650857968..898b3b885 100644
--- a/test/unit/wiki_page_test.rb
+++ b/test/unit/wiki_page_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WikiPageTest < ActiveSupport::TestCase
- fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def setup
User.current = nil
@wiki = Wiki.find(1)
diff --git a/test/unit/wiki_redirect_test.rb b/test/unit/wiki_redirect_test.rb
index f53908154..7dcceb8a5 100644
--- a/test/unit/wiki_redirect_test.rb
+++ b/test/unit/wiki_redirect_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WikiRedirectTest < ActiveSupport::TestCase
- fixtures :projects, :wikis, :wiki_pages
-
def setup
User.current = nil
@wiki = Wiki.find(1)
diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb
index 6701f6f2d..b08c5be5f 100644
--- a/test/unit/wiki_test.rb
+++ b/test/unit/wiki_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WikiTest < ActiveSupport::TestCase
- fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
-
def setup
User.current = nil
end
diff --git a/test/unit/workflow_test.rb b/test/unit/workflow_test.rb
index 99c784ce7..77d0e24f0 100644
--- a/test/unit/workflow_test.rb
+++ b/test/unit/workflow_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WorkflowTest < ActiveSupport::TestCase
- fixtures :roles, :trackers, :issue_statuses
-
def setup
User.current = nil
end
diff --git a/test/unit/workflow_transition_test.rb b/test/unit/workflow_transition_test.rb
index 345ac8339..1ff077e28 100644
--- a/test/unit/workflow_transition_test.rb
+++ b/test/unit/workflow_transition_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class WorkflowTransitionTest < ActiveSupport::TestCase
- fixtures :roles, :trackers, :issue_statuses
-
def setup
User.current = nil
WorkflowTransition.delete_all