标签: ruby ruby-on-rails-4 minitest
describe Receipt do describe 'invoice' do it 'is valid' do invoice = invoices(:invoice1) end end end
如何访问MiniTest Spec中的测试夹具? 如果我运行上面的代码,我会得到未定义的方法发票'即使它在TestCase类中工作。
谢谢!