Permalink
Browse files

Merge pull request #81 from deivid-rodriguez/fix_autolist_and_autoeva…

…l_tests

Fixes some order dependent failures in test suite.
  • Loading branch information...
2 parents c68e379 + 6f6df01 commit d71062e7b8060897eb0f813c453b1257dd35a708 @cldwalker 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
@@ -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
@@ -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
@@ -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 d71062e

Please sign in to comment.