twitter/bootstrap — pull request #3551 by jorgenfb (2012-05-20 18:29:03+00:00)
Title: Swapped out .hasClass() with .is() when checking for multiple classes

.hasClass() just checks if the classes appear in the exact order you specify, without any other classes inbetween. Using .is() ensures that you get a positive response even if classes are shuffled and/or mixed with other classes.

This seems to be a problem with some of the unit test for bootstrap-tooltip that was testing for:
.hasClass("fade in") when the actual class would have been "fade top in" when the tooltip module failed. This would give the impression that the test passed when it actually failed.