Project

General

Profile

Actions

Patch #30276

closed

Add missing fixtures to several tests

Added by Yuichi HARADA over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Even with the same test, sometimes it may failure. I confirmed it with the following bash script.

for file in `find test -name "*.rb"`; do
  RAILS_ENV=test bundle exec rake db:reset
  bundle exec rake test TEST=$file
done

The tests for which the fixture was missing were the following.

Test file Missing fixtures
test/unit/lib/redmine/field_format/version_field_format_test.rb :enabled_modules
test/unit/custom_field_test.rb :users
test/unit/journal_observer_test.rb :members, :member_roles
test/unit/project_copy_test.rb :attachments
test/unit/repository_test.rb :user_perferences, :watchers
test/functional/calendars_controller_test.rb :users, :email_addresses
test/functional/gantts_controller_test.rb :email_addresses
test/functional/news_controller_test.rb :user_perferences

I made a patch, and attach it.


Files

missing-fixtures-v3.patch (8.67 KB) missing-fixtures-v3.patch Yuichi HARADA, 2018-12-26 08:12
Actions

Also available in: Atom PDF