Class: Fuci::RSpec

Inherits:
Tester show all
Defined in:
lib/fuci/rspec.rb

Constant Summary collapse

FAILURE_INDICATOR =
'Failed examples:'
BASE_COMMAND =
'rspec --tty'
FAIL_FILE_CAPTURE =
/rspec (.*) #/

Instance Method Summary collapse

Instance Method Details

#command(log) ⇒ Object



13
14
15
# File 'lib/fuci/rspec.rb', line 13

def command log
  @command ||= "#{base_command} #{failures log }"
end

#indicates_failure?(log) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/fuci/rspec.rb', line 9

def indicates_failure? log
  log.include? FAILURE_INDICATOR
end