Project

General

Profile

« Previous | Next » 

Revision 93dc012b

Added by Dominic Cleal about 8 years ago

fixes #14742 - retrieve template kind labels from plugin regs

Ensures plugin kinds registered in class variables aren't lost when the
TemplateKind class is reloaded.

View differences:

test/unit/plugin_test.rb
Host::Managed.cloned_parameters[:include].delete(:fake_facet)
end
def test_add_template_label
kind = FactoryGirl.build(:template_kind)
Foreman::Plugin.register :test_template_kind do
name 'Test template kind'
template_labels kind.name => 'Test plugin template kind'
end
assert_equal 'Test plugin template kind', kind.to_s
end
end

Also available in: Unified diff