test/markup_test.rb in gitlab-markup-1.8.1 vs test/markup_test.rb in gitlab-markup-1.9.0
- old
+ new
@@ -51,10 +51,10 @@
Dir['test/markups/README.*'].each do |readme|
next if readme =~ /html$/
markup = readme.split('/').last.gsub(/^README\./, '')
define_method "test_#{markup}" do
- skip "Skipping MediaWiki test because wikicloth is currently not compatible with JRuby." if markup == "mediawiki" && RUBY_PLATFORM == "java"
+ skip "Skipping MediaWiki test because wikicloth is currently not compatible with Ruby 3." if markup == "mediawiki" && RUBY_VERSION >= "3"
source = File.read(readme)
expected_file = "#{readme}.html"
expected = File.read(expected_file).rstrip
actual = Pipeline.to_html(nil, :filename => readme)