Method: Object#should_not_call

Defined in:
lib/stump/mock.rb

#should_not_call(method) ⇒ Object



41
42
43
44
45
46
# File 'lib/stump/mock.rb', line 41

def should_not_call(method)
  behavior =  lambda do |*args|
                should.flunk "Umet expectations: #{method} expected to not be called"
              end
  safe_meta_def method, &behavior
end