Fixed the support of the insulated tag at the feature level

This commit is contained in:
Christophe Coevoet
2014-01-04 17:16:54 +01:00
parent 3059bc525c
commit 2c521b68ad
2 changed files with 10 additions and 1 deletions

View File

@@ -83,6 +83,15 @@ class SessionsListenerSpec extends ObjectBehavior
$this->prepareDefaultMinkSession($event);
}
function it_stops_the_sessions_for_insulated_features($event, $mink, $feature)
{
$feature->hasTag('insulated')->willReturn(true);
$mink->stopSessions()->shouldBeCalled();
$mink->setDefaultSessionName('goutte')->shouldBeCalled();
$this->prepareDefaultMinkSession($event);
}
function it_stops_the_sessions_at_the_end_of_the_exercise($mink)
{
$mink->stopSessions()->shouldBeCalled();