spec/email_spec.rb in maily-0.6.3 vs spec/email_spec.rb in maily-0.7.0
- old
+ new
@@ -43,9 +43,14 @@
it "should handle template_path via hook" do
email = mailer.find_email('recommendation')
expect(email.template_path).to eq('notifications')
end
+ it "should handle template_name via hook" do
+ email = mailer.find_email('custom_template_name')
+ expect(email.template_name).to eq('invitation')
+ end
+
it "should handle description via hook" do
email = mailer.find_email('recommendation')
expect(email.description).to eq('description')
end