Class: Evilution::Integration::RSpec::FrameworkLoader
- Inherits:
-
Object
- Object
- Evilution::Integration::RSpec::FrameworkLoader
- Defined in:
- lib/evilution/integration/rspec/framework_loader.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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.}" end |
#loaded? ⇒ Boolean
7 8 9 |
# File 'lib/evilution/integration/rspec/framework_loader.rb', line 7 def loaded? @loaded == true end |