Sha256: 959ace0d61ab302fa53c5becc1957f0289489415ff87f0ba985e2fb752d9c473
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
require 'test_helper' class Janus::MailerTest < ActionMailer::TestCase test "reset_password_instructions" do users(:julien).generate_reset_password_token! mail = UserMailer.reset_password_instructions(users(:julien)) mail.respond_to?(:deliver_now) ? mail.deliver_now : mail.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
janus-0.10.1 | test/functional/janus/mailer_test.rb |
janus-0.10.0 | test/functional/janus/mailer_test.rb |