public function testCantConstructWithOtherRef()
{
$repo_mock = M::mock('Gittern\\Repository');
$mock = M::mock();
$repo_mock->shouldReceive('getObject')->with('foo')->andReturn($mock)->atLeast()->once();
new GitternCommitishReadOnlyAdapter($repo_mock, 'foo');
}