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.61.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.60.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.59.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.58.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.57.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.56.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.55.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.54.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.53.1 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.53.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.52.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.51.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.50.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.49.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.48.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.47.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.46.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.45.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.44.0 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.43.0 lib/rspectacular/plugins/referehencible.rb