From f801209be58853ec19d59b4f7dbc89ef6df4c2b3 Mon Sep 17 00:00:00 2001 From: Daniel Vandersluis Date: Sun, 10 Jan 2021 11:44:27 -0500 Subject: [PATCH] Allow `pry` to be activated in rspec if in the local gemfile. --- spec/spec_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index def396d8388..1199b2e67d9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -11,6 +11,12 @@ require_relative 'core_ext/string' +begin + require 'pry' +rescue LoadError + # Pry is not activated. +end + # Require supporting files exposed for testing. require 'rubocop/rspec/support'