diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-03-15 18:56:32 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-03-15 18:56:32 -0400 |
commit | f870c4d063f6ac3b5fe96670955a08fcd7e15e67 (patch) | |
tree | 39740a67f230260103e90d7564c203517c05731d /activesupport/test/time_zone_test.rb | |
parent | e3b12f6cb89ff0c5641e80fa9be904b4ed6fabb6 (diff) | |
download | rails-f870c4d063f6ac3b5fe96670955a08fcd7e15e67.tar.gz rails-f870c4d063f6ac3b5fe96670955a08fcd7e15e67.tar.bz2 rails-f870c4d063f6ac3b5fe96670955a08fcd7e15e67.zip |
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.
Diffstat (limited to 'activesupport/test/time_zone_test.rb')
0 files changed, 0 insertions, 0 deletions