Sha256: 0aac824fc6fcc42a932777a7fd76e42cd54c47c13cc15d0ca45d32d94496bb7f
Contents?: true
Size: 540 Bytes
Versions: 12
Compression:
Stored size: 540 Bytes
Contents
module Fakes module RSpec class Occurances class << self def from_block(the_block) return BlockCriteria.new(the_block) end def exact(times) return from_block(lambda{|occurances| return occurances == times}) end def at_least(times) return from_block(lambda { |occurences| return occurences >= times}) end def at_most(times) return from_block(lambda { |occurences| return occurences <= times}) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems