summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2020-04-12 15:17:59 +0800
committerGitHub <noreply@github.com>2020-04-12 15:17:59 +0800
commit09796403969366947fcd762e9b6b849fcef5e588 (patch)
treee0a5d06af42a15e563b12a346f8bc5c91ac80d30 /spec
parent7a4166fb04e077536b7b8931c2649a0985cf1a83 (diff)
parentda81c960272ae0a265f7ded21697d1f09f151ffb (diff)
downloadpry-09796403969366947fcd762e9b6b849fcef5e588.tar.gz
Merge pull request #2122 from ahorek/frozen_pry_bug
pry-backtrace frozen bug
Diffstat (limited to 'spec')
-rw-r--r--spec/commands/pry_backtrace_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/commands/pry_backtrace_spec.rb b/spec/commands/pry_backtrace_spec.rb
new file mode 100644
index 00000000..320f42f7
--- /dev/null
+++ b/spec/commands/pry_backtrace_spec.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+describe "pry_backtrace" do
+ before do
+ @t = pry_tester
+ end
+
+ it 'should print a backtrace' do
+ @t.process_command 'pry-backtrace'
+ expect(@t.last_output).to start_with('Backtrace:')
+ end
+end