You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
374 B

require "spec_helper"
describe Users::PermissionMailer do
include_context "data"
it "has sends to the right email" do
created_mail = Users::PermissionMailer.created(permission)
created_mail.to.should == [permission.user.email]
destroyed_mail = Users::PermissionMailer.destroyed(permission)
destroyed_mail.to.should == [permission.user.email]
end
end