lib/seatbelt/assert_mail.rb in seatbelt-0.4.0 vs lib/seatbelt/assert_mail.rb in seatbelt-0.5.0
- old
+ new
@@ -60,11 +60,11 @@
end
def unexpected_body?(mail, options)
if options[:body]
Array(options[:body]).each do |element|
- if !mail.body.encoded.match(element)
- # puts "#{element} not found in body: #{mail.body.encoded}"
+ if !mail.body.match(element)
+ # puts "#{element} not found in body: #{mail.body}"
return true
end
end
end
false