lib/seatbelt/assert_mail.rb in seatbelt-0.3.1 vs lib/seatbelt/assert_mail.rb in seatbelt-0.4.0

- old
+ new

@@ -6,9 +6,10 @@ end def assert_no_mail(options={}, &block) assert find_email(options, &block).nil?, "didn't expect mail (#{options.inspect}) in #{ActionMailer::Base.deliveries.inspect}" end + alias_method :refute_mail, :assert_no_mail private def find_email(options, &block) if block_given?