Sha256: 5d9bda8e494ef70cfa33d29075e111a49e413e8e2c0033ec1261a04cfca1b11b

Contents?: true

Size: 219 Bytes

Versions: 1

Compression:

Stored size: 219 Bytes

Contents

require 'spec_helper'

describe "kernel_extensions" do
  describe "timer" do
    it "should time a block of code" do
      elapse = timer { sleep 1.1 }
      (elapse.should > 1) && (elapse.should < 2)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
royw-roys_extensions-0.0.4 spec/kernel_extensions_spec.rb