Sha256: 7cae05612a710df4c790934a850bf38e1ea2ca76a6ae781481e095b999c014f4

Contents?: true

Size: 449 Bytes

Versions: 24

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'
require 'cucumber/formatter/duration'

module Cucumber
  module Formatter
    describe Duration do
      include Duration

      it "formats ms" do
        expect(format_duration(0.002103)).to eq '0m0.002s'
      end

      it "formats m" do
        expect(format_duration(61.002503)).to eq'1m1.003s'
      end

      it "formats h" do
        expect(format_duration(3661.002503)).to eq '61m1.003s'
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
cucumber-2.99.0 spec/cucumber/formatter/duration_spec.rb
mobiusloop-0.1.5 spec/cucumber/formatter/duration_spec.rb
cucumber-2.4.0 spec/cucumber/formatter/duration_spec.rb
mobiusloop-0.1.3 spec/cucumber/formatter/duration_spec.rb
mobiusloop-0.1.2 spec/cucumber/formatter/duration_spec.rb
cucumber-2.3.3 spec/cucumber/formatter/duration_spec.rb
cucumber-2.3.2 spec/cucumber/formatter/duration_spec.rb
cucumber-2.3.1 spec/cucumber/formatter/duration_spec.rb
cucumber-2.3.0 spec/cucumber/formatter/duration_spec.rb
cucumber-2.2.0 spec/cucumber/formatter/duration_spec.rb
cucumber-2.1.0 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.2 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.1 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0.rc.5 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0.rc.4 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0.rc.3 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0.rc.2 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0.rc.1 spec/cucumber/formatter/duration_spec.rb
cucumber-2.0.0.beta.5 spec/cucumber/formatter/duration_spec.rb