mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fix single-event tests
This commit is contained in:
parent
87bbb3efd8
commit
22a45dfaa9
1 changed files with 7 additions and 1 deletions
|
@ -27,6 +27,8 @@ module LogStash
|
|||
plugin.register
|
||||
end
|
||||
|
||||
multiple_events = event.is_a?(Array)
|
||||
|
||||
filters = @filters
|
||||
describe event do
|
||||
before :all do
|
||||
|
@ -54,7 +56,11 @@ module LogStash
|
|||
|
||||
@results = results
|
||||
end
|
||||
subject { @results }
|
||||
if multiple_events
|
||||
subject { @results }
|
||||
else
|
||||
subject { @results.first }
|
||||
end
|
||||
it("when processed", &block)
|
||||
end
|
||||
end # def sample
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue