mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- require ruby 1.9.2 (for grok)
- use 'it' instead of 'context'
This commit is contained in:
parent
a284ef8f00
commit
fe76c7e508
1 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,14 @@ require "insist"
|
|||
require "logstash/agent"
|
||||
require "logstash/event"
|
||||
|
||||
if RUBY_VERSION < "1.9.2"
|
||||
$stderr.puts "Ruby 1.9.2 or later is required. (You are running: " + RUBY_VERSION + ")"
|
||||
$stderr.puts "Options for fixing this: "
|
||||
$stderr.puts " * If doing 'ruby bin/logstash ...' add --1.9 flag to 'ruby'"
|
||||
$stderr.puts " * If doing 'java -jar ... ' add -Djruby.compat.version=RUBY1_9 to java flags"
|
||||
raise LoadError
|
||||
end
|
||||
|
||||
module LogStash
|
||||
module RSpec
|
||||
if ENV["DEBUG"]
|
||||
|
@ -34,7 +42,7 @@ module LogStash
|
|||
filter.filter(subject)
|
||||
end
|
||||
end
|
||||
context("after processing", &block)
|
||||
it("when processed", &block)
|
||||
end
|
||||
end # def sample
|
||||
end # module RSpec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue