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: [...]-----

Name:

Email:

URL:

Not a robot? Prove it by entering the word below.


Remember my personal information

Notify me of follow-up comments?

A Development Community for Viget Labs and Beyond

Every team member here at Viget Labs strives to be an innovator. We members of the development team are no different - that's why we're constantly engaging in community discussions and exploring the unknown that is the next generation of open-source web applications.

Viget Is Hiring!

Viget has job openings for Ruby Developers, Interns, and Front-End Developers. Learn More »

Recent Comments

I think that polymorphic_url(@commentable, :anchor => “comment_#{@comment.id}") should work. You can also refactor the “comment_#{@comment.id}” to a separated method, like dom_id, which returns the dom identifier of the comment.