diff options
Diffstat (limited to 'test/unit/lib')
19 files changed, 0 insertions, 84 deletions
diff --git a/test/unit/lib/redmine/acts/mentionable_test.rb b/test/unit/lib/redmine/acts/mentionable_test.rb index 97fb553fb..4c8a2af77 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) 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 f76ab0ef3..d2f5ca539 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 fe94d00f4..d802748ab 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 8d1619782..83a866a52 100644 --- a/test/unit/lib/redmine/field_format/attachment_format_test.rb +++ b/test/unit/lib/redmine/field_format/attachment_format_test.rb @@ -24,8 +24,6 @@ class Redmine::AttachmentFieldFormatTest < ActionView::TestCase include ApplicationHelper 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/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 6ca119775..49899fcb6 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 25aebbcaf..bb2d65d76 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 6cdc4b11e..311927ff1 100644 --- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb +++ b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb @@ -24,8 +24,6 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest include ERB::Util include Rails.application.routes.url_helpers - 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/safe_attributes_test.rb b/test/unit/lib/redmine/safe_attributes_test.rb index 49fd6bd3a..93774b96f 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 b5c79335b..ff3de8684 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 @@ -25,17 +25,6 @@ class Redmine::WikiFormatting::CommonMark::ApplicationHelperTest < Redmine::Help include ERB::Util include Rails.application.routes.url_helpers - 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 73233cdb1..90f2dde7a 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb @@ -27,14 +27,6 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest include Rails.application.routes.url_helpers 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') |