Class: RubyIndexer::TestCase

Inherits:
Minitest::Test
  • Object
show all
Defined in:
lib/ruby_indexer/test/test_case.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



8
9
10
11
12
# File 'lib/ruby_indexer/test/test_case.rb', line 8

def setup
  @index = Index.new
  RBSIndexer.new(@index).index_ruby_core
  @default_indexed_entries = @index.instance_variable_get(:@entries).dup
end

#teardownObject



14
15
16
17
18
19
# File 'lib/ruby_indexer/test/test_case.rb', line 14

def teardown
  entries = @index.instance_variable_get(:@entries).values.flatten
  entries.each do |entry|
    assert_includes([:public, :private, :protected], entry.visibility)
  end
end