function it_render_template_with_gallery(EngineInterface $templating, GalleryManagerInterface $galleryManager, Gallery $gallery, Response $response)
 {
     $galleryManager->findGallery(1)->shouldBeCalled()->willReturn($gallery);
     $templating->renderResponse('FSiGalleryBundle:Gallery:gallery.html.twig', array('gallery' => $gallery))->willReturn($response);
     $this->galleryAction(1)->shouldReturn($response);
 }
 /**
  * @param int $id
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function galleryAction($id)
 {
     $gallery = $this->galleryManager->findGallery($id);
     return $this->templating->renderResponse('FSiGalleryBundle:Gallery:gallery.html.twig', array('gallery' => $gallery));
 }