Assert CodeMirror modes and mime types are valid against source

This commit is contained in:
Joshua Peek
2016-09-23 16:33:12 -07:00
parent 3abe081560
commit 67ed060d37
4 changed files with 199 additions and 199 deletions

View File

@@ -126,7 +126,7 @@ class TestGrammars < Minitest::Test
private
def submodule_paths
@submodule_paths ||= `git config --list --file "#{File.join(ROOT, ".gitmodules")}"`.lines.grep(/\.path=/).map { |line| line.chomp.split("=", 2).last }
@submodule_paths ||= `git config --list --file "#{File.join(ROOT, ".gitmodules")}"`.lines.grep(/\.path=/).map { |line| line.chomp.split("=", 2).last }.reject { |path| path =~ /CodeMirror/ }
end
# Returns a hash of submodules in the form of submodule_path => license