Yeah, you can definitely write more tests, and in particular this example that I wrote, using acceptance tests, but they run much slower than unit tests. Also, for this particular example, we’re testing the properties within our routes, so it makes more sense to test it using unit tests.
Yeah, you can definitely write more tests, and in particular this example that I wrote, using…
Quang Nguyen
11

The acceptance tests are slower but it ensures the integration of the route and its actions with the model and the template, service and etc. Finally unit tests on routes are not common for these reasons, these are recommendations of the community and the core team. hug

Like what you read? Give Michael Villander a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.