Commit 5d12677a authored by Marius Rackwitz's avatar Marius Rackwitz

[Danger] Prevent to disable tests

parent 47e1e829
......@@ -3,7 +3,7 @@
(modified_files + added_files - %w(Dangerfile)).each do |file|
contents = File.read(file)
if file.start_with?('spec')
fail("`fit` left in tests (#{file})") if contents =~ /^\w*fit/
fail("`xit` or `fit` left in tests (#{file})") if contents =~ /^\w*[xf]it/
fail("`fdescribe` left in tests (#{file})") if contents =~ /^\w*fdescribe/
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment