Sha256: 2b6d11878c0084c5270a269f8eeb06d4cf35710153e2cc14fb879798e2d5e477

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 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

3 entries across 3 versions & 1 rubygems

Version Path
action_args-2.5.0 test/mailers/action_mailer_test.rb
action_args-2.4.0 test/mailers/action_mailer_test.rb
action_args-2.3.2 test/mailers/action_mailer_test.rb