Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.212 kB
require "rubygems"
require "spec/mocks"
require "benchmark"
o = Object.new
Benchmark.bm do |x|
x.report do
1000.times do
o.should_receive(:foobar).and_return("baz")
o.foobar
end
end
end
Jump to Line
Something went wrong with that request. Please try again.