Sha256: 7a24ef64d10f4f725b60195a07c917c7fae4a1bda04f36a4cecc800e259bced3
Contents?: true
Size: 561 Bytes
Versions: 24
Compression:
Stored size: 561 Bytes
Contents
require File.expand_path('../test_helper', File.dirname(__FILE__)) class SitemapTest < ActiveSupport::TestCase class DummySitemapExtension @@calls = 0 def self.calls @@calls end 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), nil, "xml") assert_equal 1, DummySitemapExtension.calls end end
Version data entries
24 entries across 24 versions & 1 rubygems