# Help needed: upgrading from Rails 2.0.2 to Rails 2.3.5

**URL:** <https://www.ruby-forum.com/t/help-needed-upgrading-from-rails-2-0-2-to-rails-2-3-5/186843>\
**Category:** Rails\
**Created:** [April 13, 2010, 10:04am UTC](https://www.ruby-forum.com/t/help-needed-upgrading-from-rails-2-0-2-to-rails-2-3-5/186843 "2010-04-13T10:04:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunmohan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@Arunmohan](https://www.ruby-forum.com/u/Arunmohan)\
**Post date:** [April 13, 2010, 10:04am UTC](https://www.ruby-forum.com/t/help-needed-upgrading-from-rails-2-0-2-to-rails-2-3-5/186843/1 "2010-04-13T10:04:44Z")

</div>

Hi,

I am trying to upgrade my existing application from Rails 2.0.2 to  
2.3.5. I am getting the following error while I run the test:

ruby test/unit/address\_test.rb --name test\_address2\_required\_in\_jp

Loaded suite test/unit/address\_test  
Started  
E  
Finished in 0.001887 seconds.

1. Error:  
test\_address2\_required\_in\_jp(AddressTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of ActiveRecord::Base.  
The error occurred while evaluating nil.[]  
test/unit/address\_test.rb:195:in `test_address2_required_in_jp' test/test_helper.rb:134:in`run’

In 195th line I just used a fixture like addresses(:jp\_address) which  
worked well before rails upgrading.

Thanks,  
Arun
