Use Ruby 2.7 by default
As of 2021-02-10, Auto Test uses heroku-buildpack-ruby v223 (https://github.com/heroku/heroku-buildpack-ruby/blob/main/CHANGELOG.md and https://github.com/gliderlabs/herokuish/pull/646), whose default version of Ruby is 2.6.6 (https://github.com/heroku/heroku-buildpack-ruby/blob/main/CHANGELOG.md#v214-422020).
To test specs with Ruby 2.7, we should specify Ruby 2.7 to use.
CI pipeline logs
Job name | before | after | Notes |
---|---|---|---|
test |
https://gitlab.com/gitlab-org/gitlab-gollum-rugged_adapter/-/jobs/1020407858 | https://gitlab.com/gitlab-org/gitlab-gollum-rugged_adapter/-/jobs/1023933468 | the number of warnings reduced from 2 to 1 |
With this change, we can remove the following warning:
###### WARNING:
You have not declared a Ruby version in your Gemfile.
To declare a Ruby version add this line to your Gemfile:
```
ruby "2.6.6"
```
For more information see:
https://devcenter.heroku.com/articles/ruby-versions
Edited by Takuya Noguchi