On Thu, Jul 19, 2007 at 04:16:29PM -0400, Stephen Bannasch wrote:
> 
> craigmcc created this patch that fixes an outstanding problem in 
> ActiveResource.
> 
>    http://dev.rubyonrails.org/ticket/8798
> 
> I'm using it because it fixes something that was working and now is 
> broken in edge.
> 
> I'd like to write some tests for the patch to make it more likely to 
> get accepted. There's lots of great examples of tests but I'm stuck 
> on a stupid problem.
> 
> How do I run the rails specific tests? I know how to run tests for my 
> app but not how to run the tests for rails itself.

Get the SVN tree as per http://dev.rubyonrails.org/:

  svn checkout http://svn.rubyonrails/rails/trunk
  
Go into the activeresource directory:

  cd trunk/activeresource
  
Then run rake:

  rake
  
That'll run the test suite for you.

To make new tests, you want to modify
trunk/activeresource/test/base_test.rb.  Surprisingly, there aren't any
tests yet that exercise instantiate_collection directly, so you'll want to
start a new test method and go from there.

- Matt

-- 
"Considering the number of wheels Microsoft has found reason to invent, one
never ceases to be baffled by the minuscule number whose shape even vaguely
resembles a circle".
                -- Unknown, but _very_ sharp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to