fixed capybara crash on rspec testing