function it_finds_spec_resources_via_specPath(Filesystem $fs, SplFileInfo $file)
{
$this->beConstructedWith($fs, 'PhpSpec', 'spec', $this->srcPath, $this->specPath);
$filePath = $this->specPath . $this->convert_to_path('/spec/PhpSpec/Runner/ExampleRunnerSpec.php');
$fs->pathExists($this->specPath . $this->convert_to_path('/spec/PhpSpec/Runner/'))->willReturn(true);
$fs->findSpecFilesIn($this->specPath . $this->convert_to_path('/spec/PhpSpec/Runner/'))->willReturn(array($file));
$fs->getFileContents($filePath)->willReturn('<?php namespace spec\\PhpSpec\\Runner; class ExampleRunner {} ?>');
$file->getRealPath()->willReturn($filePath);
$resources = $this->findResources($this->specPath . $this->convert_to_path('/spec/PhpSpec/Runner'));
$resources->shouldHaveCount(1);
$resources[0]->getSrcClassname()->shouldReturn('PhpSpec\\Runner\\ExampleRunner');
}