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
On Jun 28, 8:12 am, Olly Lylo
<o...-2iX6Wuy7WY21Qrn1Bg8BZw@public.gmane.org>
wrote:> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---