spec_app/spec/javascripts/up/navigation_spec.js.coffee in upjs-rails-0.17.0 vs spec_app/spec/javascripts/up/navigation_spec.js.coffee in upjs-rails-0.18.0
- old
+ new
@@ -42,10 +42,10 @@
up.navigation.config.currentClasses = ['highlight']
spyOn(up.browser, 'url').and.returnValue('/foo')
$currentLink = up.hello(affix('a[href="/foo"]'))
expect($currentLink).toHaveClass('highlight up-current')
- if up.browser.canPushState()
+ describeCapability 'canPushState', ->
it 'marks a link as .up-current if it links to the current URL, but is missing a trailing slash', ->
$link = affix('a[href="/foo"][up-target=".main"]')
affix('.main')
$link.click()