Sha256: ef97068d675cd2f8e4fa76d50211ab43bfd9e519803d6ca48c076b2673738b49

Contents?: true

Size: 369 Bytes

Versions: 12

Compression:

Stored size: 369 Bytes

Contents

require "test_helper"

class SessionMailerTest < ActionMailer::TestCase
  setup do
    @session = users(:lazaro_nixon).sessions.create!
  end

  test "signed_in_notification" do
    mail = SessionMailer.with(session: @session).signed_in_notification
    assert_equal "New sign-in to your account", mail.subject
    assert_equal [@session.user.email], mail.to
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
authentication-zero-2.16.11 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.10 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.9 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.8 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.7 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.6 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.5 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.4 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.3 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.2 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.1 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt
authentication-zero-2.16.0 lib/generators/authentication/templates/test_unit/mailers/session_mailer_test.rb.tt