Sha256: 9e6d3f9d3ece778f9b00db15abfe0ee295f0ec19a9d335d4cf61f536accc57c6
Contents?: true
Size: 741 Bytes
Versions: 23
Compression:
Stored size: 741 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
23 entries across 23 versions & 1 rubygems