1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Merge pull request #2170 from barrettkingram/fix-specs-for-ruby-3

Add CI support for ruby 3 and fix broken spec
This commit is contained in:
Kyrylo Silin 2021-02-08 14:39:00 +02:00 committed by GitHub
commit 6c5d5cd745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -138,6 +138,15 @@ jobs:
- <<: *bundle_install
- <<: *install_ubuntu_nano
- <<: *unit
"ruby-3.0":
docker:
- image: circleci/ruby:3.0
working_directory: ~/pry
steps:
- <<: *repo_restore_cache
- <<: *bundle_install
- <<: *install_ubuntu_nano
- <<: *unit
"jruby-9.1-jdk":
docker:
- image: circleci/jruby:9.1-jdk
@ -199,6 +208,10 @@ workflows:
requires:
- rubocop_lint
- yard_lint
- "ruby-3.0":
requires:
- rubocop_lint
- yard_lint
- "jruby-9.1-jdk":
requires:
- rubocop_lint

View file

@ -36,7 +36,7 @@ describe Pry do
["o = Object.new.tap{ def o.render;", "'MEH'", "}"],
# multiple syntax errors reported in one SyntaxException
["puts {'key'=>'val'}.to_json"]
["puts {key: 'val'}.to_json"]
].compact.each do |foo|
it "should raise an error on invalid syntax like #{foo.inspect}" do
redirect_pry_io(InputTester.new(*foo), @str_output) do