Browse files

refactoring

  • Loading branch information...
1 parent d99fbd0 commit f8c5da26029a71245fd56843b2305837667c2e09 Larry Karnowski committed Aug 7, 2009
Showing with 2 additions and 7 deletions.
  1. +1 −1 lib/blue-ridge.js
  2. +1 −6 lib/test_runner.js
View
2 lib/blue-ridge.js
@@ -38,7 +38,7 @@ BlueRidge.Browser = {
};
if(BlueRidge.loaded != true) {
- //TODO: this is a work-in-progress and will be refactored away, hopefully
+ // Set this in your html fixture file to a lower depth if using nested test directories.
BlueRidge.depth = BlueRidge.depth || 1;
var require = require || function(url, options){ return BlueRidge.Browser.require(url, options) };
View
7 lib/test_runner.js
@@ -16,12 +16,7 @@ BlueRidge.CommandLine = {
prepareFilenameForRequireBasedOnSpecDirectory: function(filename){
if(filename == null || filename[0] == "/") { return filename; }
-
- if(this.specDirname != null) {
- filename = this.specDirname + "/" + filename;
- }
-
- return filename;
+ return (this.specDirname == null) ? filename : (this.specDirname + "/" + filename);
},
get fixtureFile(){

0 comments on commit f8c5da2

Please sign in to comment.