-
-
Notifications
You must be signed in to change notification settings - Fork 868
[Tutorial] Tests Fail With 404 on /api/rentals after Ember Data step #2280
Comments
@rayascott This sounds like you may not have made the changes to That setup should indeed work ... If you find you're still hitting snags, we'd love to get you unstuck. We find that it's sometimes more satisfying to get these snags worked out in realtime. If that'd be helpful for you as well, feel free to join us in the Ember community slack at https://ember-community-slackin.herokuapp.com. There's both a Let me know if that helps! |
@acorncom I have indeed made the changes to |
Hi @rayascott one thing I find useful is looking at the official super rentals repo here: https://github.com/ember-learn/super-rentals One known issue is that mirage came out with version 0.4.2 requiring you to call setupMirage in your test. https://github.com/samselikoff/ember-cli-mirage/releases/tag/v0.4.2 See #2272. We will fix this as soon as we can, but until then you can work around by installing mirage 0.4.1 or adding the setup call Thanks so much for reporting, though, and continue to let us know where the tutorial needs fixing. Your feedback is appreciated. |
Issued a PR to update the text around mirage setup: #2290 |
Fixed by #2290 |
Migrated from emberjs/ember.js#16368
I've been following the official Ember tutorial and have been writing the recommended tests along with the app code. After completing the Ember Data step I noticed that all of my acceptance tests were failing with a 404 on the GET request to /api/rentals. I am not seeing this issue with the app code however. The rentals display correctly on the rentals page.
Can anyone with some Ember experience shed some light on what's wrong and/or how to fix it? Thanks.
/cc @rayascott
The text was updated successfully, but these errors were encountered: