Sha256: 8f1ef33ba813ae96e6dbdf1e0cb20903509b288f2c82a91dbc885e67b24f7109
Contents?: true
Size: 455 Bytes
Versions: 14
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true 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
Version data entries
14 entries across 14 versions & 1 rubygems