Created
May 6, 2013 10:36
-
-
Save remvee/5524388 to your computer and use it in GitHub Desktop.
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
| require 'spec_helper' | |
| require 'rails/source_annotation_extractor' | |
| describe "Scanning for pending BUG, FIXME and TODO annotations in code" do | |
| # annotation extractor expects to be run from app root | |
| Dir.chdir(File.dirname(__FILE__) + "/..") | |
| SourceAnnotationExtractor.new("BUG|FIXME|TODO").find do |res| | |
| res.keys.sort.each do |file| | |
| context file do | |
| res[file].each do |note| | |
| pending note.to_s(:tag => true) | |
| end | |
| end | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment