Pattern: Use of ActionController::TestCase
Issue: -
Using ActionController::TestCase
is discouraged and should be replaced by
ActionDispatch::IntegrationTest
. Controller tests are too close to the
internals of a controller whereas integration tests mimic the browser/user.
# bad
class MyControllerTest < ActionController::TestCase
end
# good
class MyControllerTest < ActionDispatch::IntegrationTest
end
Name | Default value | Configurable values |
---|---|---|
SafeAutocorrect | false |
Boolean |
Include | +**/test/**/*.rb+ |
Array |