From: LeahH Date: 2007-06-23T02:25:24+09:00 Subject: Re: Unit Testing Custom Validation Method I've also tried adding this require File.dirname(__FILE__) + '/../test_helper' require 'lib/custom_validations' class CustomValidationsTest < Test::Unit::TestCase include ActiveRecord::Validations ... end which results in this error `alias_method': undefined method `save' for class `CustomValidationsTest' So, then I tried this require File.dirname(__FILE__) + '/../test_helper' require 'lib/custom_validations' class CustomValidationsTest < Test::Unit::TestCase include ActiveRecord::Validations def save ... end ... end and this require File.dirname(__FILE__) + '/../test_helper' require 'lib/custom_validations' class CustomValidationsTest < Test::Unit::TestCase include ActiveRecord::Validations def self.save ... end ... end both of which resulted in the same error given above. Does anyone have any ideas?