Sha256: 156b781c45e601c0d117956c4318cce5d4ee154c57d22d8bbd7eddf2c9fb69ed

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

require_relative '../spec_helper'

module Lucid
  module Formatter
    describe Duration do
      include Duration

      it 'should format ms' do
        format_duration(0.002103).should == '0m0.002s'
      end

      it 'should format m' do
        format_duration(61.002503).should == '1m1.003s'
      end

      it 'should format h' do
        format_duration(3661.002503).should == '61m1.003s'
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lucid-0.4.1 spec/lucid/duration_spec.rb
lucid-0.4.0 spec/lucid/duration_spec.rb
lucid-0.3.3 spec/lucid/duration_spec.rb
lucid-0.3.0 spec/lucid/duration_spec.rb