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

Version Path
rspectacular-0.42.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.41.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.40.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.39.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.38.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.37.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.36.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.35.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.34.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.33.0 lib/rspectacular/plugins/referehencible.rb