module RSpec::Rails::RoutingExampleGroup::ClassMethods

def routes

end
end
route_to(:controller => "my_engine/posts", :action => "index")
expect(:get => "/posts").to
it "routes posts#index" do

routes { MyEngine::Engine.routes }
describe MyEngine::PostsController do
@example

is most useful when testing Rails engines.
Specifies the routeset that will be used for the example group. This
def routes
  before do
    self.routes = yield
  end
end