Tests Scopes

When we're testing an Rails app, there a few scopes that we can test. Inside the app I'm developing, I made a few decisions to let clear each scope is responsible to test what.

  1. Models Specs: resposible to test validation, callbacks and logic inside of models;
  2. Controller Specs: responsible to test assigments, redirects and flash messages
  3. View specs: responsibles to check if views are made inside the server as expected;
  4. Requests Specs: check if routes have the correct HTTP response.
  5. Feature Specs: check if the page behaviour correctly with user interaction. Can test multiple pages.

results matching ""

    No results matching ""