Use capybara-webkit to have javascript enabled in your test