Tying route specs and controller specs together

2 views
Skip to first unread message

Perry Smith

unread,
Mar 30, 2013, 2:30:58 PM3/30/13
to rs...@googlegroups.com
The route specs take a route and make sure that a particular set of options are passed.

The controller specs take a set of options and makes sure the right things happen.

It seems logical for this set of options to be defined in one place and used in the other two places.

How is that typically done? The RSpec book seems to have been written before route_to ?

I can define constants or whatever in spec/support but it would be nice to follow an idiom if there is one so that others trying to pick up and work on the project might be able to find them more easily.

Thank you,
Perry

Reply all
Reply to author
Forward
0 new messages