Permalink
Browse files

Fixes `--library` option which fail to find classes attached to a spe…

…cific library.
  • Loading branch information...
1 parent 14bdd46 commit 257ddb982b7230250f294df768d0b848913fd179 @jails jails committed Apr 16, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 extensions/command/Quality.php
  2. +1 −1 tests/cases/extensions/command/QualityTest.php
View
2 extensions/command/Quality.php
@@ -222,7 +222,7 @@ protected function _testables($options = array()) {
}
$parts = explode('\\', $path) + array($this->library);
$this->library = array_shift($parts);
- $options['path'] = '/' . join('/', $parts);
+ $options['path'] = join('/', $parts);
}
$libraries = $this->_classes['libraries'];
$testables = $libraries::find($this->library, $options);
View
2 tests/cases/extensions/command/QualityTest.php
@@ -351,7 +351,7 @@ public function testTestablesPathSetsLibrary() {
$call = $libraries::$invocations[0];
list($library, $options) = $call['args'];
$this->assertEqual("lib2", $library);
- $this->assertEqual("/path-response", $options['path']);
+ $this->assertEqual("path-response", $options['path']);
}
public function testTestablesSinglePath() {

0 comments on commit 257ddb9

Please sign in to comment.