# encoding: utf-8 require 'spec_helper' require "logstash/filters/example" describe LogStash::Filters::Example do describe "Set to Hello World" do let(:config) do <<-CONFIG filter { example { message => "Hello World" } } CONFIG end sample("message" => "some text") do expect(subject.get("message")).to eq('Hello World') end end end