Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:johnbintz/jasmine-headless-webkit

  • Loading branch information...
commit b723d015bca91dba105adf6aa238637e8a201fcd 2 parents 154372e + efd8150
@johnbintz johnbintz authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/jasmine/headless/runner.rb
View
11 lib/jasmine/headless/runner.rb
@@ -22,7 +22,8 @@ class Runner
'src_files' => []
}
- RUNNER = File.expand_path('../../../../ext/jasmine-webkit-specrunner/jasmine-webkit-specrunner', __FILE__)
+ RUNNER_DIR = File.expand_path('../../../../ext/jasmine-webkit-specrunner', __FILE__)
+ RUNNER = File.join(RUNNER_DIR, 'jasmine-webkit-specrunner')
attr_reader :options
@@ -32,7 +33,13 @@ def self.run(options = {})
end
def initialize(options)
- raise NoRunnerError if !File.file?(RUNNER)
+ if !File.file?(RUNNER)
+ $stderr.puts "No runner found, attempting to compile..."
+ Dir.chdir RUNNER_DIR do
+ system %{ruby extconf.rb}
+ end
+ raise NoRunnerError if !File.file?(RUNNER)
+ end
@options = options
end
Please sign in to comment.
Something went wrong with that request. Please try again.