# encoding: utf-8
require_relative '../spec_helper'
require "logstash/filters/compressor"

describe LogStash::Filters::Compressor do
  describe "Set to Hello World" do
    let(:config) do <<-CONFIG
      filter {
        compressor {
          message => "Hello World"
        }
      }
    CONFIG
    end

    sample("message" => "some text") do
      expect(subject).to include("message")
      expect(subject.get('message')).to eq('Hello World')
    end
  end
end
