You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

duration_spec.rb 481 B

2 years ago
123456789101112131415161718192021222324
  1. # frozen_string_literal: true
  2. require 'spec_helper'
  3. require 'cucumber/formatter/duration'
  4. module Cucumber
  5. module Formatter
  6. describe Duration do
  7. include Duration
  8. it 'formats ms' do
  9. expect(format_duration(0.002103)).to eq '0m0.002s'
  10. end
  11. it 'formats m' do
  12. expect(format_duration(61.002503)).to eq '1m1.003s'
  13. end
  14. it 'formats h' do
  15. expect(format_duration(3661.002503)).to eq '61m1.003s'
  16. end
  17. end
  18. end
  19. end

No Description

Contributors (1)