diff --git a/README.md b/README.md index 9247f5d..763f83d 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,13 @@ Run `rake commonjs` to get a CommonJS compatible plugin file in the ## Testing To run the mustache.js test suite, run `rake spec`. All specs will be run first with JavaScriptCore (using `jsc`) -and again with Rhino, using `java org.mozilla.javascript.tools.shell.Main`. To install Rhino on OSX, follow [these instructions](Rhino Install). +and again with Rhino, using `java org.mozilla.javascript.tools.shell.Main`. + +JavaScriptCore is used from the OSX default location: + + /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc + +To install Rhino on OSX, follow [these instructions](Rhino Install). ### Adding Tests diff --git a/test/mustache_spec.rb b/test/mustache_spec.rb index ff3995d..a52cf38 100644 --- a/test/mustache_spec.rb +++ b/test/mustache_spec.rb @@ -188,7 +188,7 @@ describe "mustache" do def run_js_jsc(js) File.open("runner.js", 'w') {|f| f << js} - `jsc runner.js` + `/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc runner.js` end def run_js_rhino(js)