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

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

Returns:

  • (Boolean)


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

def loaded?
  @loaded == true
end