OS=CentOS-6.4
Ruby=ruby 1.9.3p286
Rails=bundler/lib/ruby/1.9.1/gems/rails-3.2.12
I am upgrading an RoR application from 3.1.1 running with Ruby-1.8.7 to
RoR-3.2.12 running with Ruby-1.9.3. The version running with 3.1.1 passes
all tests. The 3.2.12 is throwing this exception:
undefined method `change' for Infinity:Float (NoMethodError)
/home/byrnejb/Projects/Software/theHeart/code/proforma_rails_3_2/libexec/bundler/lib/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/attribute_methods/time_zone_conversion.rb:69:in
`round_usec'
/home/byrnejb/Projects/Software/theHeart/code/proforma_rails_3_2/libexec/bundler/lib/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/attribute_methods/time_zone_conversion.rb:46:in
`expected_at='
/home/byrnejb/Projects/Software/theHeart/code/proforma_rails_3_2/features/app/models/ca_customs_shipments/step_definitions/ca_customs_shipment_steps.rb:95:in
`block in <top (required)>'
The piece of test code that is failing is this:
ship.expected_at = rand( 3 * 24 * 60 * 60 ).seconds.from_now
What has changed?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.