Sha256: f677ddb3c6c3ec059e73e7c2144657585927d28ec6d432c93b353ba4cd416c50
Contents?: true
Size: 544 Bytes
Versions: 7
Compression:
Stored size: 544 Bytes
Contents
require 'active_mocker/loaded_mocks' require 'active_mocker/rspec' RSpec.configure do |config| config.include ActiveMocker::Rspec config.before(:each, active_mocker: true) do unless ENV['RUN_WITH_RAILS'] && self.class.metadata[:rails_compatible] active_mocker.mocks.each { |class_name, mock| stub_const(class_name, mock) } end end config.after(:all, active_mocker: true) do ActiveMocker::LoadedMocks.delete_all end config.before(:all, active_mocker: true) do ActiveMocker::LoadedMocks.delete_all end end
Version data entries
7 entries across 7 versions & 1 rubygems