require File.absolute_path(File.join(File.dirname(__FILE__), '../../spec/spec_helper')) require File.absolute_path(File.join(File.dirname(__FILE__), '../../lib/logstash/filters/mixpanel')) 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).to include("message") expect(subject['message']).to eq('Hello World') end end end