Browse files

Fixes some order dependent failures in test suite.

Introduced in pull request #72.
  • Loading branch information...
1 parent c68e379 commit 6f6df0175bc78bfa71ac803e681500ee6d2c97bb @deivid-rodriguez deivid-rodriguez committed May 24, 2013
Showing with 12 additions and 6 deletions.
  1. +5 −3 test/eval_test.rb
  2. +2 −0 test/finish_test.rb
  3. +5 −3 test/list_test.rb
View
8 test/eval_test.rb
@@ -29,9 +29,11 @@
end
it "must not eval the expression if no matching command is found if toogled" do
- enter 'set noautoeval', '[5,6,7].inject(&:+)'
- debug_file 'eval'
- check_output_doesnt_include "18"
+ temporary_change_hash_value(Debugger::Command.settings, :autoeval, false) do
+ enter '[5,6,7].inject(&:+)'
+ debug_file 'eval'
+ check_output_doesnt_include "18"
+ end
end
end
View
2 test/finish_test.rb
@@ -38,6 +38,8 @@
describe "Post Mortem" do
+ temporary_change_hash_value(Debugger::Command.settings, :autoeval, false)
+
it "must not work in post-mortem mode" do
enter 'cont', 'finish'
debug_file "post_mortem"
View
8 test/list_test.rb
@@ -62,9 +62,11 @@
end
it "must not show the surronding lines by default when autolist is toggled" do
- enter 'set noautolist', 'break 5', 'cont'
- debug_file 'list'
- check_output_doesnt_include "[4, 6] in #{fullpath('list')}", "4 4", "=> 5 5", "6 6"
+ temporary_change_hash_value(Debugger::Command.settings, :autolist, false) do
+ enter 'break 5', 'cont'
+ debug_file 'list'
+ check_output_doesnt_include "[4, 6] in #{fullpath('list')}", "4 4", "=> 5 5", "6 6"
+ end
end
end

0 comments on commit 6f6df01

Please sign in to comment.