Sha256: ebf0346e2ac09b1c07e3c175e96dfc4ce21dc6a11b09f28fae1c2593b8013fba

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

# encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
require "logstash/filters/i18n"

describe LogStash::Filters::I18n do

  describe "transliterate" do
    config <<-CONFIG
      filter {
        i18n {
          transliterate => [ "transliterateme" ]
        }
      }
    CONFIG

    event = {
      "transliterateme" => [ "Ærøskøbing" ]
    }

    sample event do
      insist { subject.get("transliterateme") } == [ "AEroskobing" ]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logstash-filter-i18n-3.0.3-java spec/filters/i18n_spec.rb
logstash-filter-i18n-3.0.2-java spec/filters/i18n_spec.rb
logstash-filter-i18n-3.0.1-java spec/filters/i18n_spec.rb
logstash-filter-i18n-3.0.0-java spec/filters/i18n_spec.rb