Sha256: 8b098f8da0634563754095394b5d4bf3dd7337ae3b3afca150d166e220541969
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true module Decidim module Mpassid module Test class Runtime # Ability to stub the requests already in the control class include WebMock::API def self.initializer(&block) @block = block end def self.initialize new.instance_initialize(&@block) end def self.load_app engine_spec_dir = File.join(Dir.pwd, "spec") require "#{Decidim::Dev.dummy_app_path}/config/environment" Dir["#{engine_spec_dir}/shared/**/*.rb"].each { |f| require f } require "paper_trail/frameworks/rspec" require "decidim/dev/test/spec_helper" end def self.cert_store @cert_store ||= CertStore.new end def instance_initialize yield self # Setup the MPASSid OmniAuth strategy for Devise # ::Devise.setup do |config| # config.omniauth( # :mpassid, # Decidim::Mpassid.omniauth_settings # ) # end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-mpassid-0.18.0 | lib/decidim/mpassid/test/runtime.rb |