Archive for April, 2010
Posting to WordPress from my iPad
Posted by Anthony in Flotsam, Technology on April 5, 2010
I don’t blog much, that’s no secret, however with the iPad and specifically the WordPress app on the iPad I might change that. Time will tell how well this works out.
Stubbing Before Everything with RSpec
Let’s say I want to always stub some external service client before every model and controller spec. For example, if I want to stub RSpreedly (a nice client interface to the Spreedly recurring payment processor), I put the following in spec/support/stubs.rb:
Now RSpreedly::Subscriber instances will always be stubbed. Simple and sweet.

