1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test
Arthur Neves f870c4d063
Fix MailerPreview broken tests
`BaseMailerPreview.welcome` is an instance method, so we need to stub the
method on a instance level and not on Class. The stub is important to make
sure the Message object is the same in the other expectations.
This was working randomly because Mocha uses == to compare two objects
on the `with()` expectation and even if the Mail::Message objects were
not the same object they are equal, but thats not the case in 100% of
the runs. So we need to make sure we use `.any_instance` method and have
the right message object.
2014-03-15 18:56:32 -04:00
..
fixtures
mailers
abstract_unit.rb standardize on jruby_skip & rbx_skip 2014-01-13 19:51:47 +05:30
asset_host_test.rb
base_test.rb Fix MailerPreview broken tests 2014-03-15 18:56:32 -04:00
delivery_methods_test.rb add actionmailer test coverage for undefined delivery method 2014-02-09 18:41:41 +00:00
i18n_with_controller_test.rb Retain ActionPack dependency on ActionView 2013-12-05 01:02:46 +01:00
log_subscriber_test.rb
mail_helper_test.rb
mail_layout_test.rb
test_helper_test.rb
test_test.rb
url_test.rb