method

scenario_ended

rspec latest stable - Class: Spec::Runner::Formatter::Story::PlainTextFormatter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

scenario_ended()
public

No documentation available.

# File lib/spec/runner/formatter/story/plain_text_formatter.rb, line 95
          def scenario_ended
            if @scenario_failed
              @story_body_text += red(@scenario_head_text)
            elsif @scenario_pending
              @story_body_text += yellow(@scenario_head_text)
            else
              @story_body_text += green(@scenario_head_text)
            end
            @story_body_text += @scenario_body_text
          end