public function testShouldAuthorizeBasedOnResourceNameIfClassIsFalse()
{
$this->params = array_merge($this->params, ['action' => 'show', 'id' => '123']);
$this->controller->shouldReceive('authorize')->once()->with('show', 'project')->andThrow('Efficiently\\AuthorityController\\Exceptions\\AccessDenied');
$resource = new Efficiently\AuthorityController\ControllerResource($this->controller, ['class' => false]);
$this->setExpectedException("Efficiently\\AuthorityController\\Exceptions\\AccessDenied");
$resource->authorizeResource();
}