test/test_message.rb in padrino-mailer-0.10.2 vs test/test_message.rb in padrino-mailer-0.10.3
- old
+ new
@@ -1,8 +1,8 @@
require File.expand_path(File.dirname(__FILE__) + '/helper')
-class TestMessage < Test::Unit::TestCase
+describe "Message" do
context 'the message' do
should "accept headers and body" do
message = Mail::Message.new do
from 'padrino@me.com'
@@ -16,10 +16,10 @@
assert_equal 'Hello there Padrino', message.subject
assert_equal 'This is a body of text', message.body.to_s.chomp
end
should "raise an error if template was not found" do
- assert_raise Padrino::Rendering::TemplateNotFound do
+ assert_raises Padrino::Rendering::TemplateNotFound do
Mail::Message.new do
from 'padrino@me.com'
to 'padrino@you.com'
subject 'Hello there Padrino'
render 'foo/bar'