From 48a9202b9338b734fc77910fc85e535785843bac Mon Sep 17 00:00:00 2001 From: Dan Croak Date: Wed, 5 Nov 2008 09:54:42 -0500 Subject: [PATCH] removing should_be_restful example from README.rdoc --- README.rdoc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/README.rdoc b/README.rdoc index 761bd170..7c9f1e1e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -90,19 +90,6 @@ Macros to test the most common controller patterns... end end -Test entire controllers in a few lines... - - class PostsControllerTest < Test::Unit::TestCase - should_be_restful do |resource| - resource.parent = :user - - resource.create.params = { :title => "first post", :body => 'blah blah blah'} - resource.update.params = { :title => "changed" } - end - end - -should_be_restful generates 40 tests on the fly, for both html and xml requests. - === Helpful Assertions (ThoughtBot::Shoulda::Assertions) More to come here, but have fun with what's there.