Class: Mutant::Rspec::Test
- Inherits:
-
Test
- Object
- Test
- Mutant::Rspec::Test
- Defined in:
- lib/mutant/rspec/test.rb
Overview
Rspec test abstraction
Constant Summary collapse
- PREFIX =
:rspec
Instance Method Summary collapse
-
#run ⇒ String
private
Run test, return report.
-
#subject_identification ⇒ String
private
Return subject identification.
Instance Method Details
#run ⇒ String
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.
Run test, return report
31 32 33 |
# File 'lib/mutant/rspec/test.rb', line 31 def run strategy.run(self) end |
#subject_identification ⇒ String
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.
Return subject identification
15 16 17 18 19 20 21 22 |
# File 'lib/mutant/rspec/test.rb', line 15 def subject_identification = example_group. if strategy.rspec2? .fetch(:example_group).fetch(:full_description) else .fetch(:full_description) end end |