Sha256: ecc212e49a7dc161fc5e8d3aa0bdf0619cf0b608d22a7e019bef85848657da47

Contents?: true

Size: 937 Bytes

Versions: 9

Compression:

Stored size: 937 Bytes

Contents

class TestReload < TestDsl::TestCase

  describe 'autoreloading' do
    after { Byebug.settings[:autoreload] = true }

    it 'must notify that automatic reloading is on by default' do
      enter 'reload'
      debug_file 'reload'
      check_output_includes \
        'Source code is reloaded. Automatic reloading is on.'
    end

    it 'must notify that automatic reloading is off if setting changed' do
      enter 'set noautoreload', 'reload'
      debug_file 'reload'
      check_output_includes \
        'Source code is reloaded. Automatic reloading is off.'
    end
  end

  describe 'reloading' do
    after { change_line_in_file(fullpath('reload'), 4, 'a = 4') }
    it 'must reload the code' do
      enter 'break 3', 'cont', 'l 4-4', -> do
        change_line_in_file(fullpath('reload'), 4, 'a = 100')
        'reload'
      end, 'l 4-4'
      debug_file 'reload'
      check_output_includes '4: a = 100'
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/byebug-2.7.0/test/reload_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/byebug-2.7.0/test/reload_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/byebug-2.7.0/test/reload_test.rb
byebug-3.0.0 test/reload_test.rb
byebug-2.7.0 test/reload_test.rb
byebug-2.6.0 test/reload_test.rb
byebug-2.5.0 test/reload_test.rb
byebug-2.4.1 test/reload_test.rb
byebug-2.4.0 test/reload_test.rb