diff --git a/build.xml b/build.xml
index 5f05c12..e255385 100644
--- a/build.xml
+++ b/build.xml
@@ -6,24 +6,24 @@
-
+
-
+
-
-
-
-
+
+
+
+
-
+
diff --git a/lib/jspec.runner.js b/lib/jspec.runner.js
index f1e7c8f..7fcbc10 100644
--- a/lib/jspec.runner.js
+++ b/lib/jspec.runner.js
@@ -8,12 +8,10 @@ var runSpec = function(spec) {
JSpec.exec(spec);
};
-// TODO a better solution would be to provide a src dir and find all specs and run. This may require using Ant's scriptlet feature ala RhinoUnit
-var specs = ['greeter',
- 'jquery.test.drive'];
+var specs = arguments;
jQuery.each(specs, function(index, spec) {
- runSpec("examples/spec/" + spec + ".spec.js");
+ runSpec(spec);
});
JSpec