mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
This gives us a consistent test framework across all Ruby versions which should help avoid errors that are only found when CI runs the tests on different Rubies. (And this fixes an immediate bug where there's no `skip` method in the version of test-unit we're currently using only on Ruby 2.2.)
10 lines
357 B
Ruby
10 lines
357 B
Ruby
require_relative "./helper"
|
|
|
|
class TestFileBlob < Minitest::Test
|
|
def test_extensions
|
|
assert_equal [".gitignore"], Linguist::FileBlob.new(".gitignore").extensions
|
|
assert_equal [".xml"], Linguist::FileBlob.new("build.xml").extensions
|
|
assert_equal [".html.erb", ".erb"], Linguist::FileBlob.new("dotted.dir/index.html.erb").extensions
|
|
end
|
|
end
|