Sha256: 1d107681eab47e7cc8e0f2c1b3a6e88f8a1d3b3410cfe2e5647ba97deea72525

Contents?: true

Size: 1.84 KB

Versions: 104

Compression:

Stored size: 1.84 KB

Contents

ENV['RDOC_TEST'] = 'yes'

require 'rdoc'
require File.expand_path '../xref_data', __FILE__

class XrefTestCase < RDoc::TestCase

  def setup
    super

    @file_name = 'xref_data.rb'
    @xref_data = RDoc::TopLevel.new @file_name
    @top_level = @xref_data

    @options = RDoc::Options.new
    @options.quiet = true

    stats = RDoc::Stats.new 0

    parser = RDoc::Parser::Ruby.new @xref_data, @file_name, XREF_DATA, @options,
                                    stats
    @top_levels = []
    @top_levels.push parser.scan

    generator = Object.new
    def generator.class_dir() nil end
    def generator.file_dir() nil end
    rdoc = RDoc::RDoc.new
    rdoc.options = @options
    RDoc::RDoc.current = rdoc
    rdoc.generator = generator

    @c1    = @xref_data.find_module_named 'C1'
    @c1_m  = @c1.method_list.last  # C1#m
    @c1__m = @c1.method_list.first # C1::m

    @c2    = @xref_data.find_module_named 'C2'
    @c2_a  = @c2.method_list.last
    @c2_b  = @c2.method_list.first

    @c2_c3 = @xref_data.find_module_named 'C2::C3'
    @c2_c3_m = @c2_c3.method_list.first # C2::C3#m

    @c2_c3_h1 = @xref_data.find_module_named 'C2::C3::H1'
    @c2_c3_h1_meh = @c2_c3_h1.method_list.first # C2::C3::H1#m?

    @c3    = @xref_data.find_module_named 'C3'
    @c4    = @xref_data.find_module_named 'C4'
    @c4_c4 = @xref_data.find_module_named 'C4::C4'
    @c5_c1 = @xref_data.find_module_named 'C5::C1'
    @c3_h1 = @xref_data.find_module_named 'C3::H1'
    @c3_h2 = @xref_data.find_module_named 'C3::H2'

    @m1    = @xref_data.find_module_named 'M1'
    @m1_m  = @m1.method_list.first

    @m1_m2 = @xref_data.find_module_named 'M1::M2'

    @parent = @xref_data.find_module_named 'Parent'
    @child  = @xref_data.find_module_named 'Child'

    @parent_m  = @parent.method_list.first # Parent#m
    @parent__m = @parent.method_list.last  # Parent::m
  end

end

Version data entries

104 entries across 82 versions & 22 rubygems

Version Path
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rdoc-3.12.1/test/xref_test_case.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rdoc-3.12.1/test/xref_test_case.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rdoc-3.12.1/test/xref_test_case.rb
graphael-on-rails-0.5.1 vendor/bundle/gems/rdoc-3.12.1/test/xref_test_case.rb
graphael-on-rails-0.0.1 vendor/bundle/gems/rdoc-3.12.1/test/xref_test_case.rb
challah-0.9.1.beta.3 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
rdoc-3.12.1 test/xref_test_case.rb
devise_sociable-0.1.0 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
railscast-assets-0.0.2 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
railscast-assets-0.0.2 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
backbone-deep-rails-0.0.1 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
challah-0.9.1.beta vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rdoc-3.12/test/xref_test_case.rb
challah-0.9.0 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb
jquery_regex-0.0.3 vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb