Add Ruby 3.1 and head to tested versions (#182)

* Add Ruby 3.1 and head to tested versions

* Fix spec for Ruby 3.1

Ruby 3.1's error message becomes more verbose. Properly loose the
expectation to have the spec passed for all Ruby versions.
This commit is contained in:
david942j 2022-03-16 21:06:18 +08:00 committed by GitHub
parent e0d0d77e8e
commit 8cc0b042f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0']
ruby-version: ['2.6', '2.7', '3.0', '3.1', 'head']
steps:
- uses: actions/checkout@v2

View File

@ -33,7 +33,7 @@ describe OneGadget::Helper do
it 'url_request' do
val = :val
expect { hook_logger { val = described_class.url_request('oao') } }.to output(<<-EOS).to_stdout
expect { hook_logger { val = described_class.url_request('oao') } }.to output(include(<<-EOS)).to_stdout
[OneGadget] undefined method `request_uri' for #<URI::Generic oao>
EOS
expect(val).to be_nil