The tests are working around these warnings by silencing all warnings. 

https://github.com/senny/rails/blob/master/activerecord/test/cases/relation_test.rb#L214