Sha256: 5678306386146afbcdd2d7524cffe817e8394f92c9611b3548260f9e3f92d630

Contents?: true

Size: 319 Bytes

Versions: 11

Compression:

Stored size: 319 Bytes

Contents

require 'test_helper'

class BaseTest < MiniTest::Spec
  def test_main_file_context
    Pry.stubs eval_path: "<main>"
    assert PryByebug.check_file_context(TOPLEVEL_BINDING)
  end

  def test_other_file_context
    Pry.stubs eval_path: "something"
    refute PryByebug.check_file_context(TOPLEVEL_BINDING)
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/pry-byebug-1.3.3/test/base_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/pry-byebug-1.3.3/test/base_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/pry-byebug-1.3.3/test/base_test.rb
pry-byebug-1.3.3 test/base_test.rb
pry-byebug-1.3.2 test/base_test.rb
pry-byebug-1.3.1 test/base_test.rb
pry-byebug-1.3.0 test/base_test.rb
pry-byebug-1.2.1 test/base_test.rb
pry-byebug-1.2.0 test/base_test.rb
pry-byebug-1.1.2 test/base_test.rb
pry-byebug-1.1.1 test/base_test.rb