reload routes with spork each run

Posted: March 13, 2011 in Rails
Tags: ,

Default(spork -d) not reload routes. So add routes to each_run block.

Spork.each_run do
  # This code will be run each time you run your specs.
  require File.expand_path("../../config/routes", __FILE__)
end

Leave a comment