Sha256: c850965cc12d811393f6975b112c6f9dfb2db1680120168a7466d053c634fa9d
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'AppMap::ClassMap' do describe '.build_from_methods' do it 'includes method comment' do map = AppMap.class_map([scoped_method((method :test_method))]) function = dig_map(map, 5)[0] expect(function).to include(:comment) end # test method comment def test_method 'test method body' end def scoped_method(method) AppMap::Trace::ScopedMethod.new AppMap::Config::Package.new, method.receiver.class.name, method, false end def dig_map(map, depth) return map if depth == 0 dig_map map[0][:children], depth - 1 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appmap-0.45.1 | spec/class_map_spec.rb |
appmap-0.45.0 | spec/class_map_spec.rb |
appmap-0.44.0 | spec/class_map_spec.rb |