Sha256: 282017b5a2584fbf4466811e4a26cfb69fa3ca0c86a2a2959705ac08dd04578c

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 Bytes

Contents

# encoding: utf-8

require_relative "../../../lib/rango/ext/time"

describe Time do
  describe ".timer" do
    it "should returns how long it takes to run the block" do
      Time.timer { sleep 0.001 }.round(3).should eql(0.001)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rango-0.0.4 spec/rango/ext/time_spec.rb