Rails testing

Topics: Testing, Ruby on Rails

Rails unit tests isolate model behavior, request tests exercise HTTP responses, and system tests drive application interactions through a browser.

Subtopics

Notes

Rails applications can be tested at several levels: model and unit tests for isolated behaviour, request tests for HTTP behaviour, and system tests for browser-level interaction.

Capybara is the common interface for browser-level tests. Cuprite is a Capybara driver that controls Chromium through the Chrome DevTools Protocol.

Bookmarks

Questions