Sha256: 27a487c070fc7954dd49bb18539e53543be425afa567bebbdf050f744e266533
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
require 'spec_helper' describe ShellTastic::Timer do it "should report start time" do start = ShellTastic::Timer.new.start start.class.should eq(Time) end it "should report stop time" do stop = ShellTastic::Timer.new.stop stop.class.should eq(Time) end it "should report total time" do timer = ShellTastic::Timer.new start = timer.start sleep 2 stop = timer.stop total = timer.total_time total.round.should eq(2) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shelltastic-0.5.0 | spec/timer_spec.rb |
shelltastic-0.4.0 | spec/timer_spec.rb |
shelltastic-0.3.0 | spec/timer_spec.rb |