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
Finished in 0.001887 seconds.
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.
In 195th line I just used a fixture like addresses(:jp_address) which
worked well before rails upgrading.