mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Prep for merging #214
This commit is contained in:
parent
9e497fbcd1
commit
06533d2a58
1 changed files with 0 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
|||
require "test_utils"
|
||||
require "logstash/event"
|
||||
|
||||
describe "event tests" do
|
||||
extend LogStash::RSpec
|
||||
|
||||
subject {
|
||||
LogStash::Event.new("@fields" => { "foo" => "bar" })
|
||||
}
|
||||
|
||||
it "should have @source == 'unknown'" do
|
||||
insist { subject["@source"] } == "unknown"
|
||||
end
|
||||
|
||||
it "should have a timestamp" do
|
||||
insist { subject }.include?("@timestamp")
|
||||
end
|
||||
|
||||
it "should have event['foo'] == 'bar'" do
|
||||
insist { subject["foo"] } == "bar"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue