Case equality is currently broken. Please see my [comment on the commit][1].
[1]: https://github.com/mongoid/mongoid/commit/e5eec97f09b1b145c4ae3f32326d607cf6129bf3#commitcomment-308554