require 'test_helper'

class ExperienceMailerTest < ActionMailer::TestCase

  test "upload_notification" do
    @experience = experiences(:public)
    mail = ExperienceMailer.upload_notification(@experience, @experience.user)
    assert_match "Experience", mail.subject
    assert_equal [@experience.user.email], mail.to
    assert_equal ["post#{@experience.id}@snappitt.com"], mail.from
    assert_match "experience", mail.body.encoded
  end

end
