Remove syntax test.

This commit is contained in:
Markus Reiter 2017-02-09 04:06:56 +01:00
parent b0dc2da97b
commit 6154182b13

View File

@ -1,17 +0,0 @@
require "test_helper"
describe "Syntax check" do
project_root = Pathname.new(File.expand_path("#{File.dirname(__FILE__)}/../"))
backend_files = Dir[project_root.join("**", "*.rb")].reject { |f| f.match %r{/vendor/|/Casks/} }
interpreter = RUBY_PATH
flags = %w[-c]
flags.unshift "--disable-all"
backend_files.each do |file|
it "#{file} is valid Ruby" do
args = flags + ["--", file]
shutup do
raise SyntaxError, "#{file} failed syntax check" unless system(interpreter, *args)
end
end
end
end