Sha256: 36ec1a6970833d7d2a6c2cd7898584f7865a1e24e8f9a4417840baaf5a907fff

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

class PostMailerTest < ActionMailer::TestCase
  def test_invite
    post = Post.new
    email = PostMailer.notification(Post.new)

    assert_emails 1 do
      email.deliver_now
    end

    expected = "<p>\n  Hello!\n</p>"
    assert_equal expected, email.body.to_s
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
detaso-oprah-0.3.1 test/mailers/post_mailer_test.rb
detaso-oprah-0.3.0 test/mailers/post_mailer_test.rb
oprah-0.3.0 test/mailers/post_mailer_test.rb
oprah-0.2.1 test/mailers/post_mailer_test.rb