Displaying 1 result from an estimated 1 matches for "loggedincontrollertest".
2007 Jan 04
8
Common setup code and naming specifications
Hello!
I have a lot of contexts for testing Rails controllers, that must do
something like ''session[:logged_in] = true'' in their setup. How can this
be refactored? In unit tests I would simply create a
LoggedInControllerTest base class, that all my functional tests would
derive from.
And another small question:
In my controller specifications I often have to decide whether to write:
specify "should provide the first ten items in @items and three pages in
@pages when passing no :page parameter to the :list actio...