Skip to content
Browse files

Working groups spec.

  • Loading branch information...
1 parent 7e9d414 commit a98ebcb9fbc9d4350630ec2d9a231ce4d15ca8f3 @kjvarga committed Apr 28, 2011
Showing with 14 additions and 15 deletions.
  1. +14 −15 spec/sitemap_generator/sitemap_groups_spec.rb
View
29 spec/sitemap_generator/sitemap_groups_spec.rb
@@ -3,24 +3,23 @@
describe "Sitemap Groups" do
before :each do
@sm = ::SitemapGenerator::LinkSet.new(:default_host => 'http://test.com')
- end
-
+ end
+
describe "sitemap filename" do
before :each do
FileUtils.rm_rf(SitemapGenerator.app.root + 'public/')
end
- # it "should be changed" do
- # @sm.create do
- # group(:filename => :sitemap_en) do
- # debugger
- # add '/en'
- # end
- # end
- #
- # file_should_exist(SitemapGenerator.app.root + 'public/sitemap_index.xml.gz')
- # file_should_exist(SitemapGenerator.app.root + 'public/sitemap_en1.xml.gz')
- # file_should_exist(SitemapGenerator.app.root + 'public/sitemap1.xml.gz')
- # end
+ it "should generate files" do
+ @sm.create do
+ group(:filename => :sitemap_en) do
+ add '/en'
+ end
+ end
+
+ file_should_exist(SitemapGenerator.app.root + 'public/sitemap_index.xml.gz')
+ file_should_exist(SitemapGenerator.app.root + 'public/sitemap_en1.xml.gz')
+ file_should_not_exist(SitemapGenerator.app.root + 'public/sitemap1.xml.gz')
+ end
end
-end
+end

0 comments on commit a98ebcb

Please sign in to comment.
Something went wrong with that request. Please try again.