Skip to content

Instantly share code, notes, and snippets.

@joshmvandercom
joshmvandercom / engine.rb
Created October 18, 2012 23:48
Testing routes with Rails 3.2 mountable engines and RSpec 2
# your-engine/lib/magic/rails/engine.rb
module Magic
module Rails
module Engine
##
# Automatically append all of the current engine's routes to the main
# application's route set. This needs to be done for ALL functional tests that
# use engine routes, since the mounted routes don't work during tests.
#