Assert undefined methods raise NameError or NoMethodError