Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from pfrenssen/patch-1
Browse files Browse the repository at this point in the history
Fix typo in ScreenshotListener::shouldSaveScreenshot()
  • Loading branch information
Tibor Kotosz authored Sep 16, 2016
2 parents b4e35ab + de05487 commit f0ffcab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ private function shouldTakeScreenshot(AfterTested $event)
private function shouldSaveScreenshot(AfterTested $event)
{
$hasScreenshot = $this->screenshotTaker->hasScreenshot();
$isScanerioFailed = $event->getTestResult()->getResultCode() === TestResult::FAILED;
$isScenarioFailed = $event->getTestResult()->getResultCode() === TestResult::FAILED;
$shouldRecordAllScenarios = $this->config->shouldRecordAllScenarios();

return $hasScreenshot && ($isScanerioFailed || $shouldRecordAllScenarios);
return $hasScreenshot && ($isScenarioFailed || $shouldRecordAllScenarios);
}
}

0 comments on commit f0ffcab

Please sign in to comment.