# -*- encoding : utf-8 -*-requireFile.expand_path(File.dirname(__FILE__)+'/../spec_helper')describeContactMailerdodescribe:to_admin_messagedoit'correctly quotes the name in a "from" address'doContactMailer.to_admin_message("A,B,C.","test@example.com","test","test",nil,nil,nil)['from'].to_s.should=='"A,B,C." <test@example.com>'endendend