Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/rdoc/rdoc_context_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def test_add_method_duplicate
expected = 'Duplicate method (unknown)#name in file second.rb, ' \
'previously in file first.rb'

assert_equal expected, err.chomp
assert_include err, expected

method = @context.method_list.first

Expand Down
4 changes: 2 additions & 2 deletions test/rdoc/rdoc_encoding_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_class_read_file_encoding_fail

assert_nil contents

assert_match %r%^unable to convert%, err
assert_include err, 'unable to convert'
end

def test_class_read_file_encoding_fancy
Expand Down Expand Up @@ -101,7 +101,7 @@ def test_class_read_file_encoding_invalid
contents = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
end

assert_equal "unable to convert \"\\xE4\" on US-ASCII for #{@tempfile.path}, skipping\n", err
assert_include err, "unable to convert \"\\xE4\" on US-ASCII for #{@tempfile.path}, skipping\n"

assert_nil contents
end
Expand Down
4 changes: 2 additions & 2 deletions test/rdoc/rdoc_options_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_check_files_warn
end

assert_empty out
assert_equal "file 'nonexistent' not found\n", err
assert_include err, "file 'nonexistent' not found\n"
assert_empty @options.files
end

Expand Down Expand Up @@ -828,7 +828,7 @@ def test_warn
end

assert_empty out
assert_equal "warnings on\n", err
assert_include err, "warnings on\n"
end

def test_write_options
Expand Down
5 changes: 2 additions & 3 deletions test/rdoc/rdoc_parser_c_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ def test_do_aliases_missing_class
refute util_get_class(content, 'cDate')
end

assert_equal "Enclosing class or module \"cDate\" for alias b a is not known\n",
err
assert_include err, "Enclosing class or module \"cDate\" for alias b a is not known\n"
end

def test_do_classes_class
Expand Down Expand Up @@ -827,7 +826,7 @@ def test_do_missing_cycle
expected = 'Unable to create class Y (y), class Z (z) ' +
'due to a cyclic class or module creation'

assert_equal expected, err.chomp
assert_include err, expected

assert_equal %w[A A::B A::B::C],
@store.all_classes_and_modules.map { |m| m.full_name }.sort
Expand Down
4 changes: 2 additions & 2 deletions test/rdoc/rdoc_rdoc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ def test_normalized_file_list_non_file_directory
assert_empty files

assert_empty out
assert_match %r"^rdoc can't parse", err
assert_match %r"#{dev}$", err
assert_include err, "rdoc can't parse"
assert_match %r"#{dev}$", err
end

def test_normalized_file_list_with_dot_doc
Expand Down
4 changes: 2 additions & 2 deletions test/rdoc/rdoc_task_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def test_inline_source
assert @t.inline_source
end

assert_equal "RDoc::Task#inline_source is deprecated\n", err
assert_include err, "RDoc::Task#inline_source is deprecated\n"

_, err = verbose_capture_output do
@t.inline_source = false
end

assert_equal "RDoc::Task#inline_source is deprecated\n", err
assert_include err, "RDoc::Task#inline_source is deprecated\n"

capture_output do
assert @t.inline_source
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/rdoc_text_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def test_to_html_tt_tag_mismatch
assert_equal '<tt>hi', to_html('<tt>hi')
end

assert_equal "mismatched <tt> tag\n", err
assert_include err, "mismatched <tt> tag\n"
end

def formatter
Expand Down
Loading