Class: Evilution::Integration::RSpec::FrameworkLoader Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/integration/rspec/framework_loader.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#callObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
14
15
16
17
18
19
20
# File 'lib/evilution/integration/rspec/framework_loader.rb', line 11

def call
  return if @loaded

  require "rspec/core"
  add_spec_load_path
  Evilution::Integration::CrashDetector.register_with_rspec
  @loaded = true
rescue LoadError => e
  raise Evilution::Error, "rspec-core is required but not available: #{e.message}"
end

#loaded?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


7
8
9
# File 'lib/evilution/integration/rspec/framework_loader.rb', line 7

def loaded?
  @loaded == true
end