Change conditions for Rails gem
Change minitest conditions for compatibility with Rails 4.1