Patch #37448

Add missing fixture users to RoleTest

Added by Go MAEDA about 1 month ago. Updated 27 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Code cleanup/refactoring
Target version:5.1.0

Description

The attached patch fixes the following error.

$ RAILS_ENV=test bin/rake db:reset
$ bin/rails test test/unit/role_test.rb
Run options: --seed 24409

# Running:

E

Error:
RoleTest#test_destroy:
ActiveRecord::RecordNotFound: Couldn't find User with 'id'=1
    test/object_helpers.rb:231:in `generate!'
    test/unit/role_test.rb:160:in `test_destroy'

rails test test/unit/role_test.rb:156

missing-fixture-role_test.diff Magnifier (444 Bytes) Go MAEDA, 2022-07-16 06:20

Associated revisions

Revision 21706
Added by Go MAEDA about 1 month ago

Add a missing fixture to RoleTest (#37448).

History

#1 Updated by Go MAEDA about 1 month ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the fix.

#2 Updated by Go MAEDA 27 days ago

  • Subject changed from Add missing fixture to RoleTest to Add missing fixture users to RoleTest

Also available in: Atom PDF