summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBarrett Ingram <bingram@eab.com>2021-01-02 17:53:36 -0600
committerBarrett Ingram <bingram@eab.com>2021-01-02 18:06:21 -0600
commit25f5022fcf3c43c43bfdb10ff2c1dc60588b9fa6 (patch)
tree621f1cc3e81404fab0cdc9e1b9f3dbff49df264e /spec
parent7fb884f1d9f7b525300e8560029de07ffc9a740e (diff)
downloadpry-25f5022fcf3c43c43bfdb10ff2c1dc60588b9fa6.tar.gz
Add CI support for ruby 3 and fix broken spec
Spec started failing because a statement which we expected to be a syntax error is now interpreted as a valid pattern-matching statement. Swapping the hash-rockets for colons turns this back into a syntax error.
Diffstat (limited to 'spec')
-rw-r--r--spec/syntax_checking_spec.rb2
1 files changed, 1 insertions, 1 deletions
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