Sha256: 6726a6d752b0e021b76d9c6c55f5ea34038fb0977033756dcd109afd0031912a
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
require_relative './test_helper' class ActiveMailerTest < ActiveSupport::TestCase include Wrong test "removes nil from recipients list automatically" do email = nil assert_nothing_raised do email = InvitationEmail.new(:sender => "spammy@example.com", :recipients => ["takesit@upemail.com", nil], :subject => "YOU GUYS!" ) end assert { email.save } deny { email.recipients.length == 2 } end test "sends with correct subject" do email = InvitationEmail.new(:sender => "spammy@example.com", :recipients => ["takesit@upemail.com", nil], :subject => "YOU GUYS!" ) assert { email.send! } assert { email.mailer.subject == email.subject } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_mailer-0.0.5 | test/active_mailer_test.rb |