(redirect to /concerts/new instead of /concerts)

This commit is contained in:
Adam Wathan
2017-05-17 17:28:27 -04:00
parent b53dd4170d
commit 196c4f2882
3 changed files with 3 additions and 3 deletions

View File

@@ -21,6 +21,6 @@ class LoginController extends Controller
]); ]);
} }
return redirect('/backstage/concerts'); return redirect('/backstage/concerts/new');
} }
} }

View File

@@ -24,7 +24,7 @@ class PromoterLoginTest extends DuskTestCase
->type('email', 'jane@example.com') ->type('email', 'jane@example.com')
->type('password', 'super-secret-password') ->type('password', 'super-secret-password')
->press('Log in') ->press('Log in')
->assertPathIs('/backstage/concerts'); ->assertPathIs('/backstage/concerts/new');
}); });
} }

View File

@@ -26,7 +26,7 @@ class PromoterLoginTest extends TestCase
'password' => 'super-secret-password', 'password' => 'super-secret-password',
]); ]);
$response->assertRedirect('/backstage/concerts'); $response->assertRedirect('/backstage/concerts/new');
$this->assertTrue(Auth::check()); $this->assertTrue(Auth::check());
$this->assertTrue(Auth::user()->is($user)); $this->assertTrue(Auth::user()->is($user));
} }