Ruby Enterprise different from Ruby MRI
I am in the process of switching a project from Ruby MRI 32-bit to Ruby Enterprise 64-bit. I noticed that they are not exactly the same. For one, the order in which active-record objects are fetched from database is different. This manifests as a failing test assertion when comparing has-many objects. The tests that always passed on ruby MRI fail under Ruby Enterprise.
Also, we noticed that mysql on new machine is different. The primary keys assigned to active-record objects are different from those on old machine. While it is never a good idea to hard-code database IDs for test assertions, it worked never the less since databases are freshly created before each test. This could be due to the architecture differences between those machines (32 vs. 64 bit).
Just a few gotchas …
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.





