Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routes_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c412960641820446a9aff012f5126cb8a26ed9b7 (plain)
1
2
3
4
5
6
7
module RoutesHelpers
  def fake_routes(&block)
    @routes = @routes.dup
    @routes.formatter.clear
    ActionDispatch::Routing::Mapper.new(@routes).instance_exec(&block)
  end
end