turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 428 forks source link

Progress bar causing capybara tests to fail #668

Open brandoncc opened 8 years ago

brandoncc commented 8 years ago

After adding this to my application.js:

$(function() {
  Turbolinks.ProgressBar.enable();
});

Most of my capybara specs failed with this javascript error (although the progress bar worked when I ran the app):

 TypeError: 'undefined' is not an object (evaluating 'Turbolinks.ProgressBar.enable')

I was able to fix it by using Turbolinks.enableProgressBar(); instead.