diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/pry_backtrace_spec.rb | 12 |
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 |