Method: Wrong::Assert#deny

Defined in:
lib/wrong/assert.rb

#deny(*args, &block) ⇒ Object

Actual signature: deny(explanation = nil, depth = 0, &block)



41
42
43
44
45
46
47
48
49
# File 'lib/wrong/assert.rb', line 41

def deny(*args, &block)
  if block.nil?
    test = args.first
    msg = args[1]
    assert !test, msg  # this makes it get passed up to the framework
  else
    aver(:deny, *args, &block)
  end
end