RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Testing Active Resource classes with FakeWeb

I just wrote a Blog post about how I use FakeWeb with Shoulda and Test::unit to write unit test for Active Resource models.

Comments

nice work man. have you checked out Dupe? http://github.com/moonmaster9000/dupe

i’ve developed it for testing ActiveResource (it’s kind of like FactoryGirl for resources, and it allows you to avoid having to hand craft xml). i’ve only ever used it within a cucumber test suite, but it should be easily adaptable to other testing frameworks.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in