[Rails] Re: Strange AR issue

2011-01-04 Thread Michael Irwin
On Jan 4, 11:53 am, Colin Law wrote: > On 4 January 2011 16:47, Michael Irwin wrote: > > > released_on is of column type DATE. > > Please don't top post, insert your comment into the previous email. > It makes it easier to follow the thread.  Thanks > > Lookin

[Rails] Re: Strange AR issue

2011-01-04 Thread Michael Irwin
released_on is of column type DATE. On Jan 4, 5:52 am, Colin Law wrote: > On 3 January 2011 23:49, Michael Irwin wrote: > > > > > > > I'm seeing a strange issue with the following code. I've also included > > the relevant log entries. Note that 're

[Rails] Strange AR issue

2011-01-04 Thread Michael Irwin
I'm seeing a strange issue with the following code. I've also included the relevant log entries. Note that 'released_on' is set in the SELECT query but is NULL in the INSERT query. What gives? year = hash["release_date"] || hash["year"] album = Album.find_or_create_by_title_and_released_on :title

[Rails] Re: rescue_from and assert_raise

2008-11-04 Thread Michael Irwin
Anyone have any input on this? On Oct 24, 11:14 am, Michael Irwin <[EMAIL PROTECTED]> wrote: > Since commit 5e3517ea7b9fbd460f772bffc9212d882011f2bc, rescue_from is > now being handled in tests.  I've been using rescue_from to handle > custom exceptions and testing that

[Rails] rescue_from and assert_raise

2008-10-24 Thread Michael Irwin
Since commit 5e3517ea7b9fbd460f772bffc9212d882011f2bc, rescue_from is now being handled in tests. I've been using rescue_from to handle custom exceptions and testing that those exceptions are raised in functional tests with assert_raise. This no longer works now. What's the proper way to test t