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.23-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.22-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.21-java spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.20-java spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.19-java spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.2.0.beta 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.26.beta 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.25.beta 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.24.beta 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.23.beta 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.22.beta 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.21.beta 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.20.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.18-java spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb
logstash-core-6.8.17-java spec/logstash/util/duration_formatter_spec.rb
logstash-output-scalyr-0.1.18.beta 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.17.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/spec/logstash/util/duration_formatter_spec.rb