Nicolae Claudius
11 years ago
3 changed files with 11 additions and 3 deletions
@ -1,5 +1,12 @@
|
||||
require "spec_helper" |
||||
|
||||
describe Users::PermissionMailer do |
||||
pending "add some examples to (or delete) #{__FILE__}" |
||||
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 |
||||
|
Loading…
Reference in new issue