From 6d8880da2a2d2b6b997ce45c8fe3f2f7db3c6b77 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Fri, 14 Sep 2012 23:07:50 +0100 Subject: [PATCH] Test for presence of an unlock link. --- spec/views/devise/mailer/unlock_instructions_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/views/devise/mailer/unlock_instructions_spec.rb b/spec/views/devise/mailer/unlock_instructions_spec.rb index 128edaa7d..4e088489d 100644 --- a/spec/views/devise/mailer/unlock_instructions_spec.rb +++ b/spec/views/devise/mailer/unlock_instructions_spec.rb @@ -12,6 +12,7 @@ describe 'devise/mailer/unlock_instructions.html.haml', :type => "view" do end it "should have an unlock link" do + rendered.should contain "Unlock my account" end end end