[Rails-core] Re: run an individual active_record test?

2007-11-14 Thread Jon Garvin
Worked Perfectly. Thanks. Pratik wrote: > Instead of using rake, do it like : > > ruby -I"connections/native_mysql" base_test.rb -n whatever_test > > > -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~-~--~~~---~--~~ You receive

[Rails-core] run an individual active_record test?

2007-11-13 Thread Jon Garvin
I'm investigating something that I'm not sure if it's a problem with my app, or with Rails. I'm writing an active_Record test in base_test.rb to check it (and finding that it's passing when I don't think it should). I'd like to run this test all by itself so I can easily tail the debug.log to se

[Rails-core] List of Nth removed associated objects.

2007-11-01 Thread Jon Garvin
Given the following.. Foo has_many :bars Bar has_many ::widgets Widget has_many :gadgets Gadget has_many :parts All of the following are now possible... @foo.bars @bar.widgets @part.gadget.widget.bar.foo However, I can't just do the opposite of that last one... @foo.bars.widgets.gadgets.parts

[Rails-core] Re: custom inflections, RESTful route path helpers, and Rails 2.0

2007-10-05 Thread Jon Garvin
Michael Koziarski wrote: >> [7369] doesn't include any tests showing that it fixes anything (I thought >> that was one of the new rules!? ;-) ), nor do the comments with the revision >> give any hints to it's purpose or ticket it closes. I'm not seeing the >> benefit and it's definitely going to i

[Rails-core] custom inflections, RESTful route path helpers, and Rails 2.0

2007-10-04 Thread Jon Garvin
Those of us that need to use custom inflections with RESTful route path helpers know that routes get loaded before custom inflections get set in the environment ( http://dev.rubyonrails.org/ticket/6829 ). However, we've had a simple workaround for this by forcing the routes to reload in the environ

[Rails-core] My first contribution

2007-05-22 Thread Jon Garvin
Following Josh Susser's presention at RailsConf on contributing to Rails Core, I was (still am) pretty fired up about doing my part. I managed to corner Josh at the on_exit reception and he suggested that for starters I find a ticket with a patch that didn't include a test, and write a failing tes