Sha256: 228c787f9981876a039b990a061e86bd08a22b4df28422101eb4d2ec7ba964e5

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

require 'test_helper'

class FooTest < ActionMailer::TestCase
  test "bar" do
    mail = Foo.bar
    assert_equal "Bar", mail.subject
    assert_equal ["to@example.org"], mail.to
    assert_equal ["from@example.com"], mail.from
    assert_match "Hi", mail.body.encoded
  end

  test "baz" do
    mail = Foo.baz
    assert_equal "Baz", mail.subject
    assert_equal ["to@example.org"], mail.to
    assert_equal ["from@example.com"], mail.from
    assert_match "Hi", mail.body.encoded
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mailee-0.4.3 app/test/functional/foo_test.rb
mailee-0.4.2 app/test/functional/foo_test.rb
mailee-0.3.0 app/test/functional/foo_test.rb