GSoC/GCI Archive
Google Summer of Code 2014 Ruby on Rails

Unify controller and integration tests

by Alan Guo Xiang Tan for Ruby on Rails

One of the most common misunderstandings amongst new Ruby on Rails developers is the difference between controller/functional tests and integration tests. Functional tests are like unit tests for controllers and don't generate a proper request - they merely mock the request based upon the test arguments. This means that features implemented as Rack middleware generally don't work in functional tests leading to lots of mistaken bug reports.