Sha256: cbc42d44f87cb9c866315cc31aae8c520ef26c800494bae2e80d133ed53bc457
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
# encoding: utf-8 class Nanoc::PluginTest < Nanoc::TestCase class SampleFilter < Nanoc::Filter identifier :_plugin_test_sample_filter end def test_named # Find existant filter filter = Nanoc::Filter.named(:erb) assert(!filter.nil?) # Find non-existant filter filter = Nanoc::Filter.named(:lksdaffhdlkashlgkskahf) assert(filter.nil?) end def test_register SampleFilter.send(:identifier, :_plugin_test_sample_filter) registry = Nanoc::PluginRegistry.instance filter = registry.find(Nanoc::Filter, :_plugin_test_sample_filter) refute_nil filter end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.8.0 | test/base/test_plugin.rb |
nanoc-3.7.5 | test/base/test_plugin.rb |