update gemfile
define method in test