I have a spec for my controller (and its routing) that looks like this:
describe "named routes" do
# mini-hack: need a GET before the named routes are loaded
it "admin_venue_merges_path.should == '/admin/venue_merges'" do
admin_venue_merges_path.should == "/admin/venue_merges"
Trouble is, I don't actually need an index action on this particular
controller - it's just there so that I can spin up whatever the code is
within ActionPack that loads those named route methods.
What I'd prefer to do is directly call ActionController or whatever and
tell it to load the named routes.
I'm fairly new to ruby and find the source code to ActionPack pretty
Can anyone more au fait with the rails source tell me how I might