require File.expand_path(File.join(File.dirname(__FILE__), "../../spec_helper")) module WebResourceBundler describe BlockParser do before(:each) do @file_manager = FileManager.new(settings.resource_dir, settings.cache_dir) @block_parser = BlockParser.new end #conditional comment spec it "matches with different conditional comments" do tests = ['','', ''] tests.each do |test| BlockParser::CONDITIONAL_BLOCK_PATTERN.should match(test) end end #links pattern spec it "matches with css or js link" do tests = ["\","\