You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.