Sha256: 1010e39ae0bc0efd78f8599b4e3eaf0b9b920598d568daa88e6d633a325200c1
Contents?: true
Size: 708 Bytes
Versions: 50
Compression:
Stored size: 708 Bytes
Contents
############################################################################## # 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
50 entries across 50 versions & 2 rubygems