Class: Mumukit::Assistant::Rule::OnlyTheseExpectationsFailed
- Inherits:
-
TheseExpectationsFailed
- Object
- Base
- SubmissionPassedWithWarnings
- TheseExpectationsFailed
- Mumukit::Assistant::Rule::OnlyTheseExpectationsFailed
- Defined in:
- lib/mumukit/assistant/rule/only_these_expectations_failed.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from TheseExpectationsFailed
#failed_expectations, #includes_failing_expectation?, #initialize, #matches?
Methods inherited from SubmissionPassedWithWarnings
Methods inherited from Base
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 |