spec_app/spec/javascripts/up/modal_spec.js.coffee in unpoly-rails-0.61.1 vs spec_app/spec/javascripts/up/modal_spec.js.coffee in unpoly-rails-0.62.0

- old
+ new

@@ -530,11 +530,12 @@ it 'does nothing on mouseup', asyncSpec (next) -> Trigger.mouseup(@$link) next => expect(@followSpy).not.toHaveBeenCalled() it 'does nothing on click', asyncSpec (next) -> + Trigger.mousedown(@$link) Trigger.click(@$link) - next => expect(@followSpy).not.toHaveBeenCalled() + next => expect(@followSpy.calls.count()).toBe(1) # IE does not call JavaScript and always performs the default action on right clicks unless AgentDetector.isIE() || AgentDetector.isEdge() it 'does nothing if the right mouse button is pressed down', asyncSpec (next) -> Trigger.mousedown(@$link, button: 2)