mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Load test fixtures where data are needed
Without this, some tests here were not actually testing anything.
This commit is contained in:
parent
f5802708db
commit
48b10134a5
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
class DelegationRelationTest < DelegationTest
|
||||
fixtures :comments
|
||||
|
||||
def target
|
||||
Comment.where.not(body: nil)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue