mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f870c4d063
`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. |
||
---|---|---|
.. | ||
fixtures | ||
mailers | ||
abstract_unit.rb | ||
asset_host_test.rb | ||
base_test.rb | ||
delivery_methods_test.rb | ||
i18n_with_controller_test.rb | ||
log_subscriber_test.rb | ||
mail_helper_test.rb | ||
mail_layout_test.rb | ||
test_helper_test.rb | ||
test_test.rb | ||
url_test.rb |