Sha256: 580465c4a0c9a746a227d795e6ed5cc1a5f00e8cc88b450e0c2c7e1ba0c616c9

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.around(:example, without_authorizations: true) do |example|
    begin
      previous_handlers = Decidim.authorization_handlers
      Decidim.authorization_handlers = []

      example.run
    ensure
      Decidim.authorization_handlers = previous_handlers
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-dev-0.7.4 lib/decidim/dev/test/rspec_support/authorization_handlers.rb
decidim-dev-0.7.3 lib/decidim/dev/test/rspec_support/authorization_handlers.rb
decidim-dev-0.7.2 lib/decidim/dev/test/rspec_support/authorization_handlers.rb
decidim-dev-0.7.1 lib/decidim/dev/test/rspec_support/authorization_handlers.rb
decidim-dev-0.7.0 lib/decidim/dev/test/rspec_support/authorization_handlers.rb