diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b1680ddff..7bd2bb9d7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.1' + ruby-version: '2.6' bundler-cache: true - name: Run RSpec tests diff --git a/lib/bundle/bundle.rb b/lib/bundle/bundle.rb index c249dbb6f..ffb0b6f90 100644 --- a/lib/bundle/bundle.rb +++ b/lib/bundle/bundle.rb @@ -14,7 +14,7 @@ def system(cmd, *args, verbose: false) logs << buf end Process.wait(pipe.pid) - success = $CHILD_STATUS.dup.success? + success = $CHILD_STATUS.success? pipe.close end puts logs.join unless success