Can't get tests working with Selenium, Capybara-webkit; RackTest works fine Can't get tests working with Selenium, Capybara-webkit; RackTest works fine selenium selenium

Can't get tests working with Selenium, Capybara-webkit; RackTest works fine


The issue was database_cleaner, which wasn't configured correctly, as it was wiping my test data before the Selenium/capybara-webkit tests were running. Here's the config that I'm now using that's allowing everything to pass:

DatabaseCleaner.strategy = :truncationRSpec.configure do |config|  config.use_transactional_fixtures = false  config.before(:each) { DatabaseCleaner.start }  config.after(:each) { DatabaseCleaner.clean }end