searls/jasmine-fixture

Namespace collision with Bootstrap's JS

Closed this issue · 1 comments

The Javascript library for Twitter's Bootstrap defines an affix method, and while testing something that used it I ran into errors in jasmine-fixture because of it.

The code using Bootstrap's affix might look something like this:

$('.issuable-affix').affix offset:
  top: -> @top = ($('.issuable-affix').offset().top - 70)
  bottom: -> @bottom = $('.footer').outerHeight(true)

And when running a spec using jasmine-fixture, we get the error: TypeError: selectorOptions.split is not a function

I don't have a solution to propose at the moment.

Ugh. Me neither.