我有ff。我仅用于它生成的 ID 的 ActiveRecord:
class SomeTable < ActiveRecord::Base
end
我认为可以通过以下方式为其指定固定装置:
one:
two:
我在其他固定装置中将其称为:
other_one:
some_field: some value
some_table: one
但是当我运行测试时,我得到:
Fixture::FormatError: Bad data for SomeTable fixture named one (nil)
有谁知道如何指定空或零固定装置?如果这是不可能的,则可以接受变通方法或替代解决方案。