Fixed define_method call in spec.