Commit b8bd9f49 authored by Orta Therox's avatar Orta Therox Committed by Samuel Giddins

Don't look inside the Danger file for `fit` or `fdescribe`

parent 8d4c727c
# Don't let testing shortcuts get into master by accident # Don't let testing shortcuts get into master by accident
(modified_files + added_files).each do |file| (modified_files + added_files - %w(Dangerfile)).each do |file|
fail('fdescribe left in tests') if File.read(file) =~ /fit/ contents = File.read(file)
fail('fit left in tests') if File.read(file) =~ /fdescribe/ 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