Class: Mumukit::Assistant::Rule::OnlyTheseExpectationsFailed

Inherits:
TheseExpectationsFailed show all
Defined in:
lib/mumukit/assistant/rule/only_these_expectations_failed.rb

Instance Attribute Summary

Attributes inherited from Base

#message

Instance Method Summary collapse

Methods inherited from TheseExpectationsFailed

#failed_expectations, #includes_failing_expectation?, #initialize, #matches?

Methods inherited from SubmissionPassedWithWarnings

#matches?

Methods inherited from Base

#initialize, #message_for

Constructor Details

This class inherits a constructor from Mumukit::Assistant::Rule::TheseExpectationsFailed

Instance Method Details

#matches_failing_expectations?(submission) ⇒ Boolean



2
3
4
# File 'lib/mumukit/assistant/rule/only_these_expectations_failed.rb', line 2

def matches_failing_expectations?(submission)
  super && failed_expectations(submission).count == @expectations.count
end