Project

General

Profile

Actions

Patch #37448

closed

Add missing fixture users to RoleTest

Added by Go MAEDA over 1 year ago. Updated over 1 year ago.

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

0%

Estimated time:

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

Files

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

Updated by Go MAEDA over 1 year ago

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

Committed the fix.

Actions #2

Updated by Go MAEDA over 1 year ago

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

Also available in: Atom PDF