spec_app/spec/javascripts/up/history_spec.js.coffee in upjs-rails-0.12.5 vs spec_app/spec/javascripts/up/history_spec.js.coffee in upjs-rails-0.13.0
- old
+ new
@@ -42,14 +42,10 @@
<div class="viewport" style="width: 100px; height: 100px; overflow-y: scroll">
<div class="content" style="height: 1000px"></div>
</div>
"""
- respond = (html) =>
- @lastRequest().respondWith
- status: 200
- contentType: 'text/html'
- responseText: longContentHtml
+ respond = => @respondWith(longContentHtml)
$viewport = $(longContentHtml).appendTo(document.body)
up.layout.config.viewports = ['.viewport']
up.history.config.popTargets = ['.viewport']