public function testCanSetBranchAfterItsBeenRemoved()
{
$transport_mock = M::mock('Gittern\\Transport\\TransportInterface');
$commit_mock = M::mock('Gittern\\Entity\\GitObject\\Commit', array('getSha' => 'f00bar'));
$this->repo->setTransport($transport_mock);
$this->repo->removeBranch('foo');
$this->repo->setBranch('foo', $commit_mock);
$transport_mock->shouldReceive('setBranch')->with('foo', 'f00bar')->once();
$this->repo->flush();
}