Using Jquery with Ruby Web Frameworks
summary
Writes an edit‑in‑place jQuery plugin test‑first using ScrewUnit and a Merb test plugin, implements behaviors until specs pass: click swaps a P for an input, Escape cancels and restores the P, Enter issues an Ajax POST and replaces the P with server JSON (tested with a mocked XHR). Uses livequery for delegated handlers and metadata plugin to store the update URL. Live demo intermittently breaks due to caching and iframe test harness quirks but core functionality is implemented and spec‑checked.
AI-written summary · about
chapters (4)
related talks
12mAn Approach to Developing and Testing Third Party JavaScript Widgets
02h 03mjQuery for Grails Developers
49mFront End Testing Frontier
41mJavascript TDD for Rubyists
18mStart using Jasmine. Write better JavaScript. Profit.
33mOld-school Javascript in Rails
35mFrom RSpec to Jest: JavaScript testing for Rails devs
40mTesting Javascript with Jasmine
