diff --git a/bin/jasmine-headless-webkit b/bin/jasmine-headless-webkit
index 72f7c05..48b4885 100755
--- a/bin/jasmine-headless-webkit
+++ b/bin/jasmine-headless-webkit
@@ -8,7 +8,13 @@ require 'fileutils'
require 'getoptlong'
require 'rubygems'
+
+gem 'jasmine'
+gem 'coffee-script-source'
+
require 'jasmine'
+require 'coffee_script/source'
+
require 'jasmine/cli'
include Jasmine::CLI
@@ -48,6 +54,7 @@ puts "Running Jasmine specs..."
files = [
'file://' + File.join(Jasmine.root, 'lib/jasmine.js'),
'file://' + File.join(Jasmine.root, 'lib/jasmine-html.js'),
+ 'file://' + CoffeeScript::Source.bundled_path,
]
files += [ [ 'src_files', 'src_dir' ], [ 'stylesheets', 'src_dir' ], [ 'helpers', 'spec_dir' ], [ 'spec_files', 'spec_dir' ] ].collect do |searches, root|
@@ -67,6 +74,8 @@ files = files.flatten.compact.collect { |file|
case File.extname(file)
when '.js'
%{}
+ when '.coffee'
+ %{}
when '.css'
%{}
end