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