Sha256: d644d335d6f8e7cb745f4e993cec176f6bcb80c21296cf6639a50f06fccb1e24
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require 'cucumber/core/test/timer' require 'cucumber/core/test/duration_matcher' module Cucumber module Core module Test describe Timer do before do allow(Timer::MonotonicTime).to receive(:time_in_nanoseconds) .and_return(525702744080000, 525702744080001) end it "returns a Result::Duration object" do timer = Timer.new.start expect( timer.duration ).to be_duration 1 end it "would be slow to test" do # so we won't end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-core-1.5.0 | spec/cucumber/core/test/timer_spec.rb |