test/conditions_test.rb in byebug-1.2.0 vs test/conditions_test.rb in byebug-1.3.0

- old
+ new

@@ -1,9 +1,8 @@ require_relative 'test_helper' -describe 'Conditions' do - include TestDsl +class TestConditions < TestDsl::TestCase describe 'setting condition' do before { enter 'break 3' } describe 'successfully' do @@ -22,11 +21,11 @@ enter ->{ "condition #{Byebug.breakpoints.first.id} b == 5" }, 'cont' debug_file('conditions') { state.line.must_equal 3 } end end - describe 'unsucessfully' do + describe 'unsuccessfully' do before { enter 'break 4' } it 'must not stop at the breakpoint if condition is false' do enter ->{ "cond #{Byebug.breakpoints.first.id} b == 3" }, 'cont' debug_file('conditions') { state.line.must_equal 4 } @@ -51,10 +50,10 @@ it 'must remove the condition from the breakpoint' do debug_file('conditions') { Byebug.breakpoints.first.expr.must_be_nil } end - it 'must not stop on the breakpoint' do + it 'must unconditionally stop on the breakpoint' do debug_file('conditions') { state.line.must_equal 3 } end end describe 'errors' do