summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2021-02-08 14:39:00 +0200
committerGitHub <noreply@github.com>2021-02-08 14:39:00 +0200
commit6c5d5cd74575e4e33a347e844b0d656110cc3de8 (patch)
tree621f1cc3e81404fab0cdc9e1b9f3dbff49df264e
parent7fb884f1d9f7b525300e8560029de07ffc9a740e (diff)
parent25f5022fcf3c43c43bfdb10ff2c1dc60588b9fa6 (diff)
downloadpry-6c5d5cd74575e4e33a347e844b0d656110cc3de8.tar.gz
Merge pull request #2170 from barrettkingram/fix-specs-for-ruby-3
Add CI support for ruby 3 and fix broken spec
-rw-r--r--.circleci/config.yml13
-rw-r--r--spec/syntax_checking_spec.rb2
2 files changed, 14 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 7a7a0876..3f55e1d2 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -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
diff --git a/spec/syntax_checking_spec.rb b/spec/syntax_checking_spec.rb
index ca75ba9f..beba497f 100644
--- a/spec/syntax_checking_spec.rb
+++ b/spec/syntax_checking_spec.rb
@@ -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