Sha256: 40b1e12cd27a11ae46a017e074754629136335dd5499e612f1ca9fce41fc28c0

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

require 'spec_helper'

describe Integer do
  describe 'to_s' do
    it 'meets the performance metrics when running 1 time' do
      expect{5.to_s}.to run_in_less_than(1.second)
    end

    it 'meets the performance metrics when running 500 times' do
      expect{5.to_s}.to run(500).times_in_less_than(5.seconds)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
benches-0.3.1 spec/matchers/run_spec.rb
benches-0.3.0 spec/matchers/run_spec.rb