Sha256: 75ad17f2cc617099ac5ccf9823735d3f614f0bbbf208615102ffa5ce2d94b14d

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

require 'spec_helper'

describe ShellTastic::Timer do
  it "should report start time" do
    start = ShellTastic::Timer.start
    start.class.should eq(Time)
  end

  it "should report stop time" do
    stop = ShellTastic::Timer.stop
    stop.class.should eq(Time)
  end

  it "should report total time" do
    start = ShellTastic::Timer.start
    sleep 2
    stop  = ShellTastic::Timer.stop
    total = ShellTastic::Timer.total_time
    total.round.should eq(2)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shelltastic-0.2.5 spec/timer_spec.rb