gitlab-org--gitlab-foss/spec/support/helpers/routes_helpers.rb
2018-05-21 16:43:12 +01:00

7 lines
182 B
Ruby

module RoutesHelpers
def fake_routes(&block)
@routes = @routes.dup
@routes.formatter.clear
ActionDispatch::Routing::Mapper.new(@routes).instance_exec(&block)
end
end