Permalink
Browse files

Merge pull request #82 from deivid-rodriguez/fix_width_issues_in_test…

…_suite

Fixes test failures reported in #80.
  • Loading branch information...
2 parents d71062e + 1bfe481 commit 95c4ea687e1b0016767d5434837844ac7af1e908 @cldwalker committed May 24, 2013
Showing with 4 additions and 5 deletions.
  1. +3 −5 test/frame_test.rb
  2. +1 −0 test/test_helper.rb
View
@@ -36,7 +36,7 @@
it "must print current stack frame when without arguments" do
enter 'break 25', 'cont', 'up', 'frame'
debug_file('frame')
- check_output_includes "#0 A.d(e#String)\n at line #{fullpath('frame')}:25"
+ check_output_includes "#0 A.d(e#String) at line #{fullpath('frame')}:25"
end
it "must set frame to the first one" do
@@ -73,8 +73,7 @@ def short_path(fullpath)
enter 'set fullpath', 'break 25', 'cont', 'where'
debug_file('frame')
check_output_includes(Regexp.new(
- "--> #0 A.d\\(e#String\\)\\n" +
- " at line #{fullpath('frame')}:25\\n" +
+ "--> #0 A.d\\(e#String\\) at line #{fullpath('frame')}:25\\n" +
" #1 A.c at line #{fullpath('frame')}:21\\n",
Regexp::MULTILINE))
end
@@ -96,8 +95,7 @@ def short_path(fullpath)
enter 'set callstyle last', 'break 25', 'cont', 'where'
debug_file('frame')
check_output_includes(Regexp.new(
- "--> #0 A.d\\(e#String\\)\\n" +
- " at line #{fullpath('frame')}:25\\n" +
+ "--> #0 A.d\\(e#String\\) at line #{fullpath('frame')}:25\\n" +
" #1 A.c at line #{fullpath('frame')}:21\\n" +
" #2 A.b at line #{fullpath('frame')}:17\\n" +
" #3 A.a at line #{fullpath('frame')}:14\\n",
View
@@ -7,3 +7,4 @@
$debugger_test_dir = File.expand_path("..", __FILE__)
Debugger::Command.settings[:debuggertesting] = true
+Debugger::Command.settings[:width] = 180

0 comments on commit 95c4ea6

Please sign in to comment.