I’m in the process of making a Rails application be able to run on different machines other than the VM which is shared around (CentOS 5.5).
I’ve got the tests to pass on my OSX running 10.7.3, except for a few, which do output ok results, but with a different order, such as:
'some test' FAILED
expected: [831557419, 372199733, 89450236],
got: [372199733, 831557419, 89450236] (using ==)
I’m kinda lost here on how to debug and solve this. Any tips or leads that I could take a look?
I’m using unixodbc, freetds and activerecord-sqlserver-adapter. It is a Rails 2.3.8 application, and RSpec 1.3.
PS: Editing to point out that there are fixtures in the project. Someone suggested this could be the problem (fixtures are being created on a different order here), but I’m lost on how to solve it.
PPS: This is a current application being run on several VMs cloned from an original VM.
The tests have most of these expected values hardcoded, but the tests do pass on those VMs. I would rather not change the actual tests if possible.
I am new to the codebase, on a consulting job. I’m trying to make this work on my machine to prove we can use any machine to develop (instead of a provided VM no one likes to code). The order is important.
Solved this by changing the Ruby version. Apparently 1.8.7 @ patchlevel > 250 changes something that causes this behavior.