Sha256: ced34841da946f35b74d5218447916c0bf4700be01a3a61e37be0548d1a28a4f
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
#coding: utf-8 require 'test/unit' require File.join(File.dirname(__FILE__), '..', '/lib/ctags.rb') class CtagsTest < Test::Unit::TestCase def test_tags_for_file tags = Ctags.tags_for_file(__FILE__) tag = tags[__method__.to_s] assert_equal __FILE__, tag[:file] assert_equal __LINE__-5, tag[:line] assert_equal 'CtagsTest', tag[:class] end def test_tags_for_code tags = Ctags.tags_for_code('file.rb', File.read(__FILE__)) tag = tags[__method__.to_s] assert_equal 'file.rb', tag[:file] assert_equal __LINE__-5, tag[:line] assert_equal 'CtagsTest', tag[:class] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ctags.rb-1.0.0 | test/test_ctags.rb |