Created
September 30, 2011 16:00
-
-
Save RyanScottLewis/1254207 to your computer and use it in GitHub Desktop.
Finding spec stuff and blah
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts Dir.glob("spec/**/*_spec.rb").inject([]) { |memo, spec_file| | |
| spec_file = Pathname.new(spec_file) | |
| memo << "#{spec_file} is missing the encoding at the top" if spec_file.read !~ /encoding/ | |
| memo | |
| }.join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment