From 25a27b4efc4348361bdd467ac148651a56fdee5b Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Fri, 7 Jan 2022 10:54:37 -0800 Subject: [PATCH] don't require pry-byebug on ruby -V >= 3.2 --- spec/helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/helper.rb b/spec/helper.rb index 22c836a62..659650d53 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -9,7 +9,10 @@ require 'webmock/rspec' require 'base64' require 'jwt' -require 'pry-byebug' +# latest version of pry-byebug is not compatible with Ruby 3.2.0 +if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.2.0') + require 'pry-byebug' +end WebMock.disable_net_connect!()