Skip to content

Instantly share code, notes, and snippets.

@dmichael
Created February 12, 2013 19:47
Show Gist options
  • Select an option

  • Save dmichael/4772785 to your computer and use it in GitHub Desktop.

Select an option

Save dmichael/4772785 to your computer and use it in GitHub Desktop.
# Mocha.js test runner support
# https://github.com/jfirebaugh/konacha
Konacha.configure do |config|
config.spec_dir = "spec/javascripts/mocha"
config.spec_matcher = /_spec\.|_test\./
# driver names a Capybara driver used for the run task (try :poltergeist, after installing PhantomJS).
# Without this directive, konacha will try to run this in Firefox
require 'capybara/poltergeist'
config.driver = :poltergeist
# config.stylesheets = %w(application)
end if defined?(Konacha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment