Sha256: 4cebf85281cc95357cb68ec78e6d45a489063741d9bcad2976c36539e6e16add

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

Stored size: 516 Bytes

Contents

require 'test_helper'

class ExtActionMailerTest < ActiveSupport::TestCase

  test "monkeypatch location" do
    monkeypatch = ActionMailer::Base.instance_method(:each_template)
    path        = monkeypatch.source_location.first
    assert_match "maildown/ext/action_mailer.rb", path

    monkeypatch = ActionView::OptimizedFileSystemResolver.instance_method(:extract_handler_and_format_and_variant)
    path        = monkeypatch.source_location.first
    assert_match "maildown/ext/action_view.rb", path
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
maildown-3.3.0 test/unit/ext_action_mailer_test.rb
maildown-3.2.0 test/unit/ext_action_mailer_test.rb
maildown-3.1.0 test/unit/ext_action_mailer_test.rb
maildown-3.0.3 test/unit/ext_action_mailer_test.rb
maildown-3.0.2 test/unit/ext_action_mailer_test.rb
maildown-3.0.1 test/unit/ext_action_mailer_test.rb
maildown-3.0.0 test/unit/ext_action_mailer_test.rb