Commit de6e130c authored by Samuel Giddins's avatar Samuel Giddins

Merge pull request #5206 from CocoaPods/danger-tests

[Danger] Restrict specs check to specs/
parents 7fd45434 a052d4f1
......@@ -2,6 +2,8 @@
(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 =~ /fit/
fail("`fdescribe` left in tests (#{file})") if contents =~ /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