From 8cc0b042f1aca088c2937109ab56b4c3970f439d Mon Sep 17 00:00:00 2001 From: david942j Date: Wed, 16 Mar 2022 21:06:18 +0800 Subject: [PATCH] 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. --- .github/workflows/ruby.yml | 2 +- spec/helper_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 10637e1..c01f372 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -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 diff --git a/spec/helper_spec.rb b/spec/helper_spec.rb index 0ead8b9..90092a8 100644 --- a/spec/helper_spec.rb +++ b/spec/helper_spec.rb @@ -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 # EOS expect(val).to be_nil