spec_app/spec/javascripts/up/popup_spec.js.coffee in unpoly-rails-0.55.1 vs spec_app/spec/javascripts/up/popup_spec.js.coffee in unpoly-rails-0.56.0

- old
+ new

@@ -14,10 +14,10 @@ linkDims = $link.get(0).getBoundingClientRect() pass: Math.abs(popupDims.right - linkDims.right) < 1.0 && Math.abs(popupDims.top - linkDims.bottom) < 1.0 beforeEach -> - @restoreBodyHeight = u.temporaryCss('body', 'min-height': '3000px') + @restoreBodyHeight = u.writeTemporaryStyle('body', minHeight: '3000px') afterEach -> @restoreBodyHeight() it "loads this link's destination in a popup positioned under the given link", asyncSpec (next) ->