# Rake test fails under InstantRails but not OSX

**URL:** <https://www.ruby-forum.com/t/rake-test-fails-under-instantrails-but-not-osx/108042>\
**Category:** Rails\
**Created:** [June 28, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/rake-test-fails-under-instantrails-but-not-osx/108042 "2007-06-28T17:12:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olly\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/eb8c5e/32.png) [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Post date:** [June 28, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/rake-test-fails-under-instantrails-but-not-osx/108042/1 "2007-06-28T17:12:48Z")

</div>

I’ve found an intriguing issue with Rake. I develop under OSX and all  
my tests pass when I run ‘rake test’. I recently tried this on  
Windows XP using InstantRails and a few of the unit tests failed.  
Interestingly, if I manually execute rake\_test\_loader.rb with the same  
parameters as Rake itself uses (or at least, what Rake prints to the  
console), the tests pass fine, e.g:

$ ruby -Ilib;test “C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/  
rake-0.7.3/lib/rake/rake\_test\_loader.rb” “test/unit/test\_1.rb” “test/  
unit/test\_2etc.rb”

Would anyone be able to enlighten me as to what Rake is doing  
differently which might explain this behaviour?

---

<div class="post-metadata">

**Author:** ![Olly\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/eb8c5e/32.png) [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Post date:** [June 28, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/rake-test-fails-under-instantrails-but-not-osx/108042/2 "2007-06-28T17:25:49Z")

</div>

Shot in the dark but if the locales for the database are different  
from the windows box and the OS X box you could get failing tests if  
you are testing the order of a result.

ex.  
assert\_equal Post.find\_recent.first, posts(:first)

Its happened to me.

- Richard
