From 8fa8aa60c22b524e45a9fea427085472403e0e6a Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 11 Apr 2011 11:46:02 -0400 Subject: [PATCH] defaults for spec_dir and doc update --- README.md | 1 + bin/jasmine-headless-webkit | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 30e29fa..c98dcba 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ of examples](https://github.com/johnbintz/examples) for more information on the Tested in the following environments: * Mac OS X 10.6, with MacPorts Qt and Nokia Qt.mpkg +* Kubuntu 10.10 ## License diff --git a/bin/jasmine-headless-webkit b/bin/jasmine-headless-webkit index 6659576..11a7ca8 100755 --- a/bin/jasmine-headless-webkit +++ b/bin/jasmine-headless-webkit @@ -14,11 +14,13 @@ files = [ DEFAULTS = { 'spec_files' => [ '**/*[sS]pec.js' ], - 'helpers' => [ 'helpers/**/*.js' ] + 'helpers' => [ 'helpers/**/*.js' ], + 'spec_dir' => 'spec/javascripts' } files += [ [ 'src_files', 'src_dir' ], [ 'stylesheets', 'src_dir' ], [ 'helpers', 'spec_dir' ], [ 'spec_files', 'spec_dir' ] ].collect do |searches, root| data[searches] ||= DEFAULTS[searches] + data[root] ||= DEFAULTS[root] if data[searches] data[searches].collect do |search|