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 -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
