On Fri, Jul 06, 2007 at 02:58:20PM -0000, mikong wrote:
>
> > The best I can find through a quick trawl is
> > actionpack/test/controller/controller_fixtures/app/models
>
> How about creating a file in the same directory where render_test.rb
> is located (i.e. actionpack/test/controller)? There's a file there
> fake_controllers.rb that's used by 4 test files:
> assert_select_test.rb, routing_test.rb, selector_test.rb,
> test_test.rb. Seems to me like this is just a similar case of
> refactoring (so maybe create a fake_models.rb?). This is just a
> suggestion though as I'm still new at this and still trying to make my
> first patch. What do you guys think?
I hadn't noticed the fake_controllers.rb, since I usually don't put anything
but *_test.rb in my tests directory. That looks like a good precedent,
though, so I'll rework my patch in that direction and Koz can tell me if
it's bodgy. <grin>
- Matt
--
"The user-friendly computer is a red herring. The user-friendliness of a
book just makes it easier to turn pages. There's nothing user-friendly about
learning to read."
-- Alan Kay
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---