AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
846 stars 315 forks source link

Resource integration test sometimes fails on travis-ci #229

Closed tvdeyen closed 12 years ago

tvdeyen commented 12 years ago

The resource_integration_test fails sometimes. Please have a look in the build stats:

http://travis-ci.org/#!/magiclabs/alchemy_cms/jobs/1179985/L258

masche842 commented 12 years ago

This is interesting. Specs are expecting 12.32, Page renders 12. Seems like a weird rounding/float-converting-error. I'll have a look at that. The test is right though, 12 is not 12.32...

tvdeyen commented 12 years ago

It's a mysql issue with decimal columns. Explicitly passing :precision and :scale in schema.rb fixed the problem on travis ci.