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.

13 lines
376 B

require "spec_helper"
12 years ago
describe Users::PermissionMailer do
11 years ago
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