- require ruby 1.9.2 (for grok)

- use 'it' instead of 'context'
This commit is contained in:
Jordan Sissel 2012-08-30 03:28:01 -04:00
parent a284ef8f00
commit fe76c7e508

View file

@ -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