spec/javascripts/mercury/modal_spec.js.coffee in mercury-rails-0.5.0 vs spec/javascripts/mercury/modal_spec.js.coffee in mercury-rails-0.6.0
- old
+ new
@@ -311,10 +311,10 @@
expect(spy.callCount).toEqual(1)
describe "on a preloaded view", ->
beforeEach ->
- @setTimeoutSpy = spyOn(window, 'setTimeout').andCallFake((timeout, callback) => callback())
+ @setTimeoutSpy = spyOn(window, 'setTimeout').andCallFake((callback, timeout) => callback())
Mercury.preloadedViews = {'/blank.html': 'this is the preloaded content'}
afterEach ->
Mercury.preloadedViews = {}