Close and Go BackBack to Viget

Testing with Mock Objects in Rails

Ben Scofield
Ben Scofield, Development Director, November 30, 2006 0

UPDATE: May 24th, 2007
This post is now woefully out of date; since it was written, several excellent mocking libraries have been released, and some testing frameworks include mocking functionality of their own. Watch the Four Labs blog for an updated version of this, coming soon!

Trackback: sneaq.net » Ditching FeedTools for SimpleRSS » Patrick Reagan on 01/04 at 01:19 AM [...] 01/04/2007 — Patrick Reagan Even after my brief struggle with FeedTools, I’ve decided to move on. FeedTools worked great, but it took a while to grab and parse out the feed data – even when pulling from a local cached file through a mock object (thanks, Ben). After googling for a bit I came across SimpleRSS, which doesn’t provide all the features of FeedTools, but it does handle both RSS and Atom feeds (rather quickly as well). After running gem install simple-rss, getting an item list for a feed was easy: [...]-----

We're the Developers

at Viget Labs. We write about web development trends, tips, best practices, industry events, and our projects — all with an emphasis on Ruby on Rails.

Recent Comments

Tony,

I understand and agree that the back-end shouldn’t output code (html code), and only content. The templates (aka views) should do the trick, but instead of having lot’s of if/else conditionals inside the view, you may just output the following content.

No information available

The template would loop in an array and put all the <li>’s inside the <ul>.
I don’t see anything wrong, nor...