Commit 47e1e829 authored by Marius Rackwitz's avatar Marius Rackwitz

[Danger] Make sure to match only DSL constructs

parent c59b9b2a
......@@ -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 =~ /fit/
fail("`fdescribe` left in tests (#{file})") if contents =~ /fdescribe/
fail("`fit` left in tests (#{file})") if contents =~ /^\w*fit/
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