Sha256: 2b7112a16a89dc4d0302f8ae54a1157e29e6dea5844a30ad3ecfe3152a378e9c
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 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 ComfyPress::Sitemap.register_extension(DummySitemapExtension.method(:callback)) ComfyPress::Sitemap.process(cms_sites(:default), nil, "xml") assert_equal 1, DummySitemapExtension.calls end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfypress-0.1.4 | test/unit/sitemap_test.rb |
comfypress-0.1.3 | test/unit/sitemap_test.rb |