I assume that ActionController::TestCase
is for only testing ActionControllers
, but what does ActiveSupport::TestCase
test? Does it test everything (models, views, and controllers)? Is one or both of these classes old/outdated? I think I prefer to stick with the stock RoR way of testing rather than getting more confused with other gems etc. I'm new to Ruby on Rails and TDD.
ActionController::TestCase is designed for testing controllers, so it has special methods for testing controllers.
ActiveSupport::TestCase is designed for testing models.
there is api for these classes
http://api.rubyonrails.org/classes/ActionController/TestCase.html
http://api.rubyonrails.org/classes/ActiveSupport/TestCase.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With