test/processor_test.rb in pry-byebug-1.3.3 vs test/processor_test.rb in pry-byebug-2.0.0

- old
+ new

@@ -1,6 +1,26 @@ require 'test_helper' -class ProcessorTest < MiniTest::Spec +# +# Tests for pry-byebug's processor. +# +class ProcessorTest < Minitest::Spec + before do + Pry.color = false + Pry.pager = false + Pry.hooks = Pry::DEFAULT_HOOKS + end -end + describe 'Initialization' do + let(:step_file) { test_file('stepping') } + before do + @input = InputTester.new + @output = StringIO.new + redirect_pry_io(@input, @output) { load step_file } + end + + it 'stops execution at the first line after binding.pry' do + @output.string.must_match(/\=> 6:/) + end + end +end