Skip to content

Instantly share code, notes, and snippets.

@jonpitch
Last active July 27, 2016 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpitch/5e480906625ba3f26284180af8b6f413 to your computer and use it in GitHub Desktop.
Save jonpitch/5e480906625ba3f26284180af8b6f413 to your computer and use it in GitHub Desktop.
write better ember tests - mirage scenario
test('a test demonstrating a scenario based api response', function(assert) {
// override the request made in this test
server.get('/api/things', function({ db }, request) {
return {
// some different response
};
});
// assertions
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment