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.70.8 lib/rspectacular/plugins/referehencible.rb
rspeckled-0.0.16 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.15 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.14 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.13 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.12 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.11 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.10 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.9 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.8 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.7 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.6 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.5 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.4 lib/rspeckled/plugins/referehencible.rb
rspectacular-0.70.7 lib/rspectacular/plugins/referehencible.rb
rspeckled-0.0.3 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.2 lib/rspeckled/plugins/referehencible.rb
rspeckled-0.0.1 lib/rspeckled/plugins/referehencible.rb
rspectacular-0.70.6 lib/rspectacular/plugins/referehencible.rb
rspectacular-0.62.0 lib/rspectacular/plugins/referehencible.rb