<?php

class EventsCest
{
    public function testIfICantCreateAnEventWithoutBeingAuthenticated(AcceptanceTester $I)
    {
        $I->am('guest');
        $I->wantTo('see that i can\'t create an event');
        $I->amOnPage('event/create');
        $I->canSeeResponseCodeIs(301);
    }
}

<?php

class EventsCest
{
    public function testIfICantCreateAnEventWithoutBeingAuthenticated(AcceptanceTester $I)
    {
        $I->am('guest');
        $I->wantTo('see that i can\'t create an event');
        $I->amOnPage('event/create');
        $I->canSee('have to be logged in', '.alert-danger');
    }
}

Refactor event create test to check for words instead of response code
Refactor event create test to check for words instead of response code
