Skip to content

Instantly share code, notes, and snippets.

@dce
Created March 8, 2012 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dce/2002884 to your computer and use it in GitHub Desktop.
Save dce/2002884 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
files = `grep -lir :focus spec`.split(/\n/) - ["spec/spec_helper.rb"]
if files.any?
puts "FOCUS: #{files.inspect}"
exit 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment