Rails 5 - Controller Test Are Same as Integration Tests?

14 views
Skip to first unread message

Panayotis Matsinopoulos

unread,
Jun 21, 2017, 2:31:05 PM6/21/17
to Ruby on Rails: Talk
Dear All,

Just to confirm the subject, since I am new to Rails 5 (coming from Rails 4)....

The scaffold for controllers generates test cases that derive from "ActionDispatch::IntegrationTest", which makes the controller tests 
being, in fact, integration tests. Am I right? Basically, I understand that Rails 5 favours integration tests over old style controller unit tests.
Correct?

It's awesome if it does, btw.

Best

Pano

Reply all
Reply to author
Forward
0 new messages