Sha256: f316c48d60358847e9a60d4b277322a0acb591aa9c3387edd29922f228c0e646
Contents?: true
Size: 713 Bytes
Versions: 14
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true ############################################################################## # Referehencible Plugin ############################################################################## begin require 'referehencible' RSpec.configure do |config| config.before(:each, :mock_refs => lambda { |v| !!v }) do |example| reference = if example.metadata[:mock_refs].is_a? TrueClass 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' else example.metadata[:mock_refs] end allow(Referehencible).to receive(:reference_number). and_return(reference) end end rescue LoadError end
Version data entries
14 entries across 14 versions & 1 rubygems