Permalink
Browse files

Describe and implement last step in scenario

$> vim src/Bossa/Bundle/TrainingBundle/Features/Context/StudentContext.php
$> bin/behat --no-paths admissions/student_enrols_on_a_course.feature:6
$> vim src/Bossa/Bundle/TrainingBundle/Resources/views/Courses/list.html.twig
$> bin/behat --no-paths admissions/student_enrols_on_a_course.feature:6

Describe outcome expectations and tuneup the template to make scenario green.
1 parent 04a4511 commit 01d08ffd1bfdcad3e7103ff3c9d12b27eaabc0e2 @everzet committed Sep 14, 2012
@@ -57,7 +57,9 @@ public function iGoToThePage($page)
*/
public function iShouldNotSeeAnyCourses()
{
- throw new PendingException();
+ $this->mink->assertSession()->pageTextContains(
+ 'No courses scheduled.'
+ );
}
/**
@@ -1,4 +1,7 @@
{% extends '::base.html.twig' %}
{% block body %}
+ {% if not courses|length %}
+ No courses scheduled.
+ {% endif %}
{% endblock body %}

0 comments on commit 01d08ff

Please sign in to comment.