Class: Mutant::Rspec::Test

Inherits:
Test
  • Object
show all
Defined in:
lib/mutant/rspec/test.rb

Overview

Rspec test abstraction

Constant Summary collapse

PREFIX =
:rspec

Instance Method Summary collapse

Instance Method Details

#runString

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

Returns:

  • (String)


31
32
33
# File 'lib/mutant/rspec/test.rb', line 31

def run
  strategy.run(self)
end

#subject_identificationString

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

Returns:

  • (String)


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