The RestClient.put call to attach the image is by-the-book CouchDB. Similarly, the the get call is idiomatic RSpec—but only when expecting a text-based response. When a binary response comes back, bad things happen:

cstrom@jaynestown:~/repos/eee-code$ ruby ./spec/eee_spec.rb.F*

Pending:

eee a CouchDB recipe GET /recipes/:permalink/:image should return 404 for a non-existent image (TODO)./spec/eee_spec.rb:55