Sha256: 940a34dea2a0aacc88c7e03eeb6a3f866eb308be0d9637e0957616f4722be580
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
require File.dirname(__FILE__) + "/../../test_helper" module DeepTest module Metrics class MeasurementTest < ::Test::Unit::TestCase test "of_time_taken should measure time an operation takes" do measurement = Measurement.of_time_taken("category") do sleep 0.5 end assert_equal "category", measurement.category assert_in_delta 0.5, measurement.value, 0.1 assert_equal "seconds", measurement.units end end end end
Version data entries
4 entries across 4 versions & 2 rubygems