Sha256: 49ee1283c0f700db13bd157d58afb696d4bf605117639b206905acee8a5626a5

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

require 'test_helper'

#
# Checks current pry-byebug's context.
#
class BaseTest < MiniTest::Spec
  def test_main_file_context
    Pry.stubs eval_path: '<main>'
    assert PryByebug.file_context?(TOPLEVEL_BINDING)
  end

  def test_other_file_context
    Pry.stubs eval_path: 'something'
    refute PryByebug.file_context?(TOPLEVEL_BINDING)
  end
end

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/pry-byebug-3.1.0/test/base_test.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/pry-byebug-3.1.0/test/base_test.rb
pry-byebug-3.1.0 test/base_test.rb
pry-byebug-3.0.1 test/base_test.rb
pry-byebug-3.0.0 test/base_test.rb