I would have expected the tests in spec/controllers
to be unit tests, but this controller test seems more like an integration test. What’s the best practice for testing controllers? Do people ever test controllers with unit tests?
I would have expected the tests in spec/controllers
to be unit tests, but this controller test seems more like an integration test. What’s the best practice for testing controllers? Do people ever test controllers with unit tests?