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

Version Path
rspeckled-0.0.54 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.53 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.52 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.51 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.50 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.49 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.48 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.47 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.46 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.45 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.44 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.43 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.42 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.41 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.40 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.39 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.38 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.37 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.36 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.35 lib/rspeckled/plugins/referehencible.rb