On Wed, Jan 25, 2012 at 7:20 PM, Guyren Howe <guy...@mac.com> wrote:
> On Jan 25, 2012, at 4:50 PM, Guyren G Howe wrote:
>
>> On Jan 25, 2012, at 1:56 PM, David Chelimsky wrote:
>>
>>> I'd start by debugging to see where the wheels fall off. Are you
>>> familiar/comfortable with Ruby's debugger?
>>
>> Sure.
>>
>> What’s happening is that during the save process, I get to field_changed? in 
>> dirty.rb, which does
>>
>>       value = column.type_cast(value)
>>
>> when I look at column here, it believes @sql_type = “integer”. Which seems 
>> weird.
>>
>> So at this point, it occurs to me to check this against my test database, 
>> and the columns in the test database are indeed integers! How does this come 
>> to be?
>
> And note that
>
>        rake db:test:load
>
> doesn’t change anything.

I'm not sure what rake db:test:load actually does, but `RAILS_ENV=test
rake db:reset` should probably do the trick.

What db are you using, btw?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to