1 min readJun 21, 2016
Hi there, Diaa.
I’m trying to follow up but i’m stuck with this error:
FruitsTest::test_it_fetches_fruits
Failed asserting that an array has the key ‘data’.
This is my FruitsController: http://pastebin.com/eWzzi2Z2
And this is my routes file: http://pastebin.com/UfZCLHQT
Any chance you might take a look? I’m new to API development and i don’t know what else to try, i’ve checked the controller, the routes, everything and i can’t pass that step.
Thank you in advance.