twitter/bootstrap — pull request #3655 by jorgenfb (2012-05-31 08:23:29+00:00)
Title: Updated unit test for tooltips. Now using is() instead of hasClass()

Using .hasClass() when checking for multiple classes requires the classes to appear in the same order and without any other classes in between ( it is simply exact string matching ). Using .is() instead works with selector syntax and will make sure the tests behave correctly.