In my cache sweeper I call expire_fragment and use some named route helpers for its argument (like comments_path(...)).
This works fine in the app, but in my tests it's causing problems, because there's no controller and comments_path returns nil. (See method_missing in actionpack/lib/action_controller/caching/sweeper.rb -- that's what's returning nil in this case. I don't understand why that's acceptable, but whatever.) When my tests run Comment.create() directly, the sweeper gets called, with no controller. How can I get to comments_path in this case? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---