Whoops, view needed for processing sitemaps

Clarke Brunsdon committed Jan 24, 2012
commit 2f9f2c86d42fb702c9ebf23a2d12f9a3e28928e5
Showing 1 changed file with 2 additions and 2 deletions
test/unit/sitemap_test.rb +2 -2
@@ @@ -6,14 +6,14 @@ class SitemapTest < ActiveSupport::TestCase
def self.calls
@@calls
end
- def self.callback(cms_site, xml)
+ def self.callback(cms_site, view, xml)
@@calls = @@calls + 1
end
end
def test_should_get_registered_extensions
ComfortableMexicanSofa::Sitemap.register_extension(DummySitemapExtension.method(:callback))
- ComfortableMexicanSofa::Sitemap.process(cms_sites(:default), "xml")
+ ComfortableMexicanSofa::Sitemap.process(cms_sites(:default), nil, "xml")
assert_equal 1, DummySitemapExtension.calls
end