summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/lib')
-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
21 files changed, 0 insertions, 90 deletions
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')