Sha256: 450f002e065ea45235e147874877cb3f16479a2d710c08dca3f159c96ad08491
Contents?: true
Size: 655 Bytes
Versions: 4
Compression:
Stored size: 655 Bytes
Contents
$:.unshift File.expand_path("../..", __FILE__) require 'simplecov' SimpleCov.start do add_group 'XmlSitemap', 'lib/xml-sitemap' end require 'digest' require 'xml-sitemap' def fixture_path File.expand_path("../fixtures", __FILE__) end def fixture(file) File.read(File.join(fixture_path, file)) end def checksum(content) Digest::SHA1.hexdigest(content) end def gunzip(path) contents = nil File.open(path) do |f| gz = Zlib::GzipReader.new(f) contents = gz.read gz.close end contents end module FileHelper def delete_if_exists(path) File.delete(path) if File.exists?(path) end end class File extend FileHelper end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xml-sitemap-1.3.3 | spec/spec_helper.rb |
xml-sitemap-1.3.2 | spec/spec_helper.rb |
xml-sitemap-1.3.1 | spec/spec_helper.rb |
xml-sitemap-1.3.0 | spec/spec_helper.rb |