diff options
author | Go MAEDA <maeda@farend.jp> | 2024-12-11 10:17:57 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-12-11 10:17:57 +0000 |
commit | 4fb1e4bea0edb5fe520aa8257f5d867232c8f729 (patch) | |
tree | a613cae1a23801f8596e14f2c5d6557cb6060c46 /test/unit/lib/redmine/acts | |
parent | 7ae0427c9ee891820954dfbd72c129d65989b3e8 (diff) | |
download | redmine-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
Diffstat (limited to 'test/unit/lib/redmine/acts')
-rw-r--r-- | test/unit/lib/redmine/acts/mentionable_test.rb | 8 | ||||
-rw-r--r-- | test/unit/lib/redmine/acts/positioned_with_scope_test.rb | 2 | ||||
-rw-r--r-- | test/unit/lib/redmine/acts/positioned_without_scope_test.rb | 2 |
3 files changed, 0 insertions, 12 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! |