Skip to content
Snippets Groups Projects
Commit 6154182b authored by Markus Reiter's avatar Markus Reiter
Browse files

Remove syntax test.

parent b0dc2da9
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment