class Fakes::RSpec::Occurrences
Public Class Methods
at_least(times)
click to toggle source
# File lib/fakes_rspec/occurrences.rb, line 15 def at_least(times) condition = lambda { |occurrences| occurrences >= times } return from_block(condition) end
at_most(times)
click to toggle source
# File lib/fakes_rspec/occurrences.rb, line 21 def at_most(times) condition = lambda { |occurrences| occurrences <= times } return from_block(condition) end
exact(times)
click to toggle source
# File lib/fakes_rspec/occurrences.rb, line 9 def exact(times) condition = lambda { |occurances| occurances == times } return from_block(condition) end
from_block(the_block)
click to toggle source
# File lib/fakes_rspec/occurrences.rb, line 5 def from_block(the_block) return BlockCriteria.new(the_block) end