Sha256: d9bbe3234813e11ea3afa8c5e57ae07d7c60591206bbedbfda34cf744df7b2f7

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'test_helper'

class Janus::MailerTest < ActionMailer::TestCase
  test "reset_password_instructions" do
    users(:julien).generate_reset_password_token!
    
    mail = JanusMailer.reset_password_instructions(users(:julien)).deliver
    assert_equal [users(:julien).email], mail.to
    assert !mail.subject.blank?
    
    url = edit_user_password_url(:token => users(:julien).reset_password_token)
    assert_match Regexp.new(Regexp.escape(url)), mail.encoded
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
janus-0.5.0 test/functional/janus/mailer_test.rb