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.
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!
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