require 'active_support/test_case' class ActiveSupport::TestCase def assert_not(assertion) assert !assertion end def assert_blank(assertion) assert assertion.blank? end def assert_not_blank(assertion) assert !assertion.blank? end alias :assert_present :assert_not_blank def assert_email_sent(&block) assert_difference('ActionMailer::Base.deliveries.size') { yield } end def assert_email_not_sent(&block) assert_no_difference('ActionMailer::Base.deliveries.size') { yield } end end