I have a spec for my controller (and its routing) that looks like this:
describe "named routes" do before do # mini-hack: need a GET before the named routes are loaded get :index end it "admin_venue_merges_path.should == '/admin/venue_merges'" do admin_venue_merges_path.should == "/admin/venue_merges" end end
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