cavalle / steak

DISCONTINUED - The delicious combination of RSpec and Capybara for Acceptance BDD
MIT License
763 stars 32 forks source link

doesn't recognized javascript_driver #53

Open jhjwind opened 12 years ago

jhjwind commented 12 years ago

Even though I setup Capybara.javascript_driver = :webkit within the rspec.config block, the specs are still running using RackTest.

theodorton commented 11 years ago

In case anyone else sees this issue, I solved it like this:

# spec/acceptance/acceptance_helper.rb
require 'spec_helper'

# Put your acceptance spec helpers inside spec/acceptance/support
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  Capybara.default_driver = :webkit
end