Sha256: 5ea79490842b43e4b4069a9c0ca47a5fddf188817ac1abe29a0ef6973cd02b66
Contents?: true
Size: 587 Bytes
Versions: 25
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module Decidim module ControllerExampleGroup extend ActiveSupport::Concern class_methods do def routes before do routes = yield @orig_default_url_options = routes.default_url_options.dup routes.default_url_options[:script_name] = "" self.routes = routes end after do routes.default_url_options = @orig_default_url_options end end end end end RSpec.configure do |config| config.include Decidim::ControllerExampleGroup, type: :controller end
Version data entries
25 entries across 25 versions & 1 rubygems