File: float_duration_spec.rb

package info (click to toggle)
ruby-test-prof 1.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,448 kB
  • sloc: ruby: 13,093; sh: 4; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 224 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

require "test_prof/ext/float_duration"

using TestProf::FloatDuration

describe TestProf::FloatDuration do
  it "works" do
    expect((27 * 60 + 41.05142).duration).to eq "27:41.051"
  end
end