diff --git a/Gemfile b/Gemfile index 86c83728f90..5377f990fa8 100644 --- a/Gemfile +++ b/Gemfile @@ -146,6 +146,7 @@ group :test, :development do gem "shoulda-matchers", require: false gem "rspec-html-matchers" + gem "pry-stack_explorer", require: false gem "byebug", require: ENV["RM_INFO"].nil?, platform: :mri gem "rubocop-discourse", require: false gem "parallel_tests" diff --git a/Gemfile.lock b/Gemfile.lock index 2e5ceb1aec9..f623261fe99 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -308,6 +308,9 @@ GEM pry (>= 0.13, < 0.15) pry-rails (0.3.9) pry (>= 0.10.4) + pry-stack_explorer (0.6.1) + binding_of_caller (~> 1.0) + pry (~> 0.13) public_suffix (5.0.5) puma (6.4.2) nio4r (~> 2.0) @@ -623,6 +626,7 @@ DEPENDENCIES pg pry-byebug pry-rails + pry-stack_explorer puma rack rack-mini-profiler diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 2911632aaea..5db7091bd3f 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -19,6 +19,7 @@ require "rbtrace" if RUBY_ENGINE == "ruby" require "pry" require "pry-byebug" require "pry-rails" +require "pry-stack_explorer" require "fabrication" require "mocha/api" require "certified"