public function testCanRenameBranch()
{
$transport_mock = M::mock('Gittern\\Transport\\TransportInterface');
$this->repo->setTransport($transport_mock);
$transport_mock->shouldReceive('resolveTreeish')->with('foo')->andReturn('f00bar');
$this->repo->renameBranch('foo', 'bar');
$transport_mock->shouldReceive('removeBranch')->with('foo')->once();
$transport_mock->shouldReceive('setBranch')->with('bar', 'f00bar')->once();
$this->repo->flush();
}