add a check if we can't find the version

Fixes #2331
This commit is contained in:
Pier-Hugues Pellerin 2015-01-14 10:30:24 -05:00 committed by Jordan Sissel
parent 938dbfca77
commit 2d7ebd1999

View file

@ -85,6 +85,15 @@ describe LogStash::Plugin do
one_notice.validate({})
end
it "warns the user if we can't find a defined version" do
expect_any_instance_of(Cabin::Channel).to receive(:warn)
.once
.with(/plugin doesn't have a version/)
subject.validate({})
end
it 'logs an error if the plugin use the milestone option' do
expect_any_instance_of(Cabin::Channel).to receive(:error)
.with(/stromae plugin is using the 'milestone' method/)