aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_migration.rb
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-03-15 18:56:32 -0400
committerArthur Neves <arthurnn@gmail.com>2014-03-15 18:56:32 -0400
commitf870c4d063f6ac3b5fe96670955a08fcd7e15e67 (patch)
tree39740a67f230260103e90d7564c203517c05731d /activerecord/lib/active_record/schema_migration.rb
parente3b12f6cb89ff0c5641e80fa9be904b4ed6fabb6 (diff)
downloadrails-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 'activerecord/lib/active_record/schema_migration.rb')
0 files changed, 0 insertions, 0 deletions