Sha256: b5880295548943612b5a0d4e31eb7b1025269f8d87704f0fdce2c5624217fc15
Contents?: true
Size: 1.07 KB
Versions: 22
Compression:
Stored size: 1.07 KB
Contents
require File.expand_path("../../spec_helper", __FILE__) describe Redcar::TodoList::FileParser do before do TodoListSpecHelper.set_fixture_settings @parser = Redcar::TodoList::FileParser.new @tags = @parser.parse_files(TodoListSpecHelper::Fixtures) end it "should find tags that are in the tag list" do @tags.keys.should include "FIXME" @tags.keys.should include "OPTIMIZE" end it "should find only colon'ed tags if that requirement is set in the settings" do Redcar::TodoList.storage['require_colon'] = true @parser = Redcar::TodoList::FileParser.new tags = @parser.parse_files(TodoListSpecHelper::Fixtures) tags.keys.should include "OPTIMIZE" tags.keys.should_not include "FIXME" Redcar::TodoList.storage['require_colon'] = false end it "should not search files without included suffixes" do @tags.keys.should_not include "XXX" end it "should not search excluded files" do @tags.keys.should_not include "NOTE" end it "should ignore files in excluded dirs" do @tags.keys.should_not include "TODO" end end
Version data entries
22 entries across 22 versions & 2 rubygems