Mocha will throw deprecation warnings unless you put it last in the gem list. Maybe with a comment like

    gem 'mocha', require: false   #this gem needs to be last in the list

To prevent future undesired alphabetization (by me :) )