Sha256: f316c48d60358847e9a60d4b277322a0acb591aa9c3387edd29922f228c0e646

Contents?: true

Size: 713 Bytes

Versions: 14

Compression:

Stored size: 713 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

14 entries across 14 versions & 1 rubygems

Version Path
rspeckled-0.0.30 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.29 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.28 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.27 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.26 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.25 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.24 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.23 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.22 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.21 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.20 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.19 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.18 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.17 lib/rspeckled/plugins/referehencible.rb