Sha256: 627f79634570b949a3a46811a5f768ccdfb6cc849306658b4b752dff1e24996e
Contents?: true
Size: 614 Bytes
Versions: 15
Compression:
Stored size: 614 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
15 entries across 15 versions & 1 rubygems