public function testSetsSessionRedirectWhenRedirect()
{
$url = 'http://foo.bar/redirect';
$request = $this->createRequest('/', array('HTTP_X_XHR_REFERER' => 'http://foo.bar'));
$response = new RedirectResponse($url);
$session = $this->getSessionMock();
$session->expects($this->once())->method('set')->with($this->equalTo('helthe_turbolinks_redirect_to'), $this->equalTo($url));
$request->setSession($session);
$this->turbolinks->decorateResponse($request, $response);
$this->assertResponseHasNoCookies($response);
}