spec/support/helper_methods.rb
#
# Asserts that the model +var+
# no longer exists in the DB
Asserts that the model +var+
no longer exists in the DB
Asserts that the model + var + no longer exists in the DB
def should_be_destroyed(var)
  dead = false
  begin
    var.class.find var.id
  rescue
    dead = true
  end
  assert dead
end
def should_be_destroyed ( var ) dead = false begin var . class . find var . id rescue dead = true end assert dead end
Asserts that the model +var+
no longer exists in the DB
Asserts that the model + var + no longer exists in the DB
var
<not_specific>