Test Adapters: Always use the last output for score runs
* This prevents learners from cheating by printing the required status line themselves
This commit is contained in:
@ -8,7 +8,7 @@ class RspecAdapter < TestingFrameworkAdapter
|
||||
end
|
||||
|
||||
def parse_output(output)
|
||||
captures = REGEXP.match(output[:stdout]).captures.map(&:to_i)
|
||||
captures = output[:stdout].scan(REGEXP).try(:last).map(&:to_i)
|
||||
count = captures.first
|
||||
failed = captures.second
|
||||
{count: count, failed: failed}
|
||||
|
Reference in New Issue
Block a user