Sha256: 792051020cd03ac1f14250c85916f7ac97e9390a1ab514c592f5ac1c74e3c151

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

class SitemapTest < ActiveSupport::TestCase
  
  context "Sitemap" do
    
    setup do
      create_posts
      load_sitemap
    end
    
    should "create sitemap" do
      Crawlable::Sitemap.write("test/sitemap.xml")
      assert File.exists?("test/sitemap.xml.gz")
    end
    
    teardown do
      File.delete("test/sitemap.xml.gz") if File.exists?("test/sitemap.xml.gz")
    end
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
crawlable-0.0.1.8 test/test_sitemap.rb
crawlable-0.0.1.7 test/test_sitemap.rb
crawlable-0.0.1.6 test/test_sitemap.rb