Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
b8bd9f49
Commit
b8bd9f49
authored
Apr 18, 2016
by
Orta Therox
Committed by
Samuel Giddins
Apr 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't look inside the Danger file for `fit` or `fdescribe`
parent
8d4c727c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Dangerfile
Dangerfile
+4
-3
No files found.
Dangerfile
View file @
b8bd9f49
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment