I'm building a new Rails 5 app and ran my integration tests, but am receiving an error that a certain method doesn't exist:
Minitest::UnexpectedError: NoMethodError: undefined method `foods' for #<FoodsControllerTest:0x007fba351c0150>
These tests cover a FoodsController I built with a generator, and trailing down the error, I see the setup method has the following line:
def setup
@food = foods(:one)
end
I can't seem to trail down where this method came from - can anyone help me? Thank you.
Aucun commentaire:
Enregistrer un commentaire