test/test_sitemap.rb in crawlable-0.0.1.5 vs test/test_sitemap.rb in crawlable-0.0.1.6

- old
+ new

@@ -2,10 +2,22 @@ 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 \ No newline at end of file +end