Sha256: e8d2c16122d6b1814b2465cd367ab0e3048caf2aca4fd809763b05a5fec3a50a
Contents?: true
Size: 436 Bytes
Versions: 14
Compression:
Stored size: 436 Bytes
Contents
require 'logstash/devutils/rspec/spec_helper' require 'logstash/inputs/friendly_durations' describe FileWatch::Settings do context "when create from options" do it "doesn't convert sincedb_clean_after to seconds" do res = FileWatch::Settings.from_options({:sincedb_clean_after => LogStash::Inputs::FriendlyDurations.call(1, "days").value}) expect(res.sincedb_expiry_duration).to eq 1 * 24 * 3600 end end end
Version data entries
14 entries across 14 versions & 1 rubygems