Skip to content

Instantly share code, notes, and snippets.

@remvee
Created May 6, 2013 10:36
Show Gist options
  • Select an option

  • Save remvee/5524388 to your computer and use it in GitHub Desktop.

Select an option

Save remvee/5524388 to your computer and use it in GitHub Desktop.
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