Sha256: e4c6c6f39b8ba50521996c86ea9579507d9b241cf5c3027b258ede4704c6b2f2

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

class UserMailerTest < ActionMailer::TestCase
  test '#send_email_without_args' do
    #it should not raise NameError: undefined local variable or method `params' for ...
    assert UserMailer.send_email_without_args
  end

  test '#send_email_with_optional_args' do
    #it should not raise NoMethodError: undefined method for nil:NilClass
    assert UserMailer.send_email_with_optional_args
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action_args-2.3.1 test/mailers/action_mailer_test.rb