Hi Patrick,

On Tue, 2009-08-25 at 13:38 -0400, Patrick Doyle wrote:
> Hello,
> I just ran into a bug in my application in which the behavior differed
> depending on whether there was a single element in a particular table
> or multiple elements in the table.  Right after I fixed the bug, I
> thought to myself, "I wonder how I could have structured a functional
> test to detect this?"
> 
> For my simple application, I am perfectly happy to use fixtures and
> ActionController::TestCase.  I have a fixture with multiple records in
> it.  If I wanted to test my application with a single record, and then
> test it again with multiple records, how could I do that?

Fixtures are not the only way to load your test database.  You can do
whatever you want along the lines of db prep in your individual test
methods.

HTH,
Bill


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to