<commit_before>require File.expand_path('../helper', __FILE__)

begin
require 'rdoc/markup/to_html'

class RdocTest < Test::Unit::TestCase
  def rdoc_app(&block)
    mock_app do
      set :views, File.dirname(__FILE__) + '/views'
      get '/', &block
    end
    get '/'
  end

  it 'renders inline rdoc strings' do
    rdoc_app { rdoc '= Hiya' }
    assert ok?
    assert_body "<h1>Hiya</h1>"
  end<commit_msg>Update rdoc test to work with RDoc 3.10<commit_after>require File.expand_path('../helper', __FILE__)

begin
require 'rdoc'
require 'rdoc/markup/to_html'

class RdocTest < Test::Unit::TestCase
  def rdoc_app(&block)
    mock_app do
      set :views, File.dirname(__FILE__) + '/views'
      get '/', &block
    end
    get '/'
  end

  it 'renders inline rdoc strings' do
    rdoc_app { rdoc '= Hiya' }
    assert ok?
    assert_body "<h1>Hiya</h1>"
  end
{'fraction_non_alphanumeric': 0.1329479768786127, 'fraction_numerical': 0.008092485549132947, 'mean_word_length': 3.104265402843602, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6025400', 'n_tokens_mistral': 320, 'n_tokens_neox': 315, 'n_words': 80}