Sha256: 7026135f5e003f339dcd6d68954824c03aaa0c92847b1324a33254d126c43b04

Contents?: true

Size: 280 Bytes

Versions: 201

Compression:

Stored size: 280 Bytes

Contents

# encoding: utf-8
require "logstash/util/duration_formatter"
require "spec_helper"

describe LogStash::Util::DurationFormatter do
  let(:duration) { 3600 * 1000 } # in milliseconds

  it "returns a human format" do
    expect(subject.human_format(duration)).to eq("1h")
  end
end

Version data entries

201 entries across 198 versions & 14 rubygems

Version Path
logstash-core-6.8.12-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.11-java spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.10-java spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.9-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.8-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.7-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.5.2-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.5.1-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.6-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.5.0-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.5-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.4.2-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.4-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.4.1-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.4.0-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-7.3.2-java spec/logstash/util/duration_formatter_spec.rb