Failing capybara test fixed to pass