Sha256: 8f1ef33ba813ae96e6dbdf1e0cb20903509b288f2c82a91dbc885e67b24f7109

Contents?: true

Size: 455 Bytes

Versions: 14

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspeckled-1.0.3 lib/rspeckled/plugins/referehencible.rb
rspeckled-1.0.2 lib/rspeckled/plugins/referehencible.rb
rspeckled-1.0.1 lib/rspeckled/plugins/referehencible.rb
rspeckled-1.0.0 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.64 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.63 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.62 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.61 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.60 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.59 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.58 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.57 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.56 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.55 lib/rspeckled/plugins/referehencible.rb