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 Ruby's new Hash syntax applied in actionmailer 2013-11-14 13:41:37 +05:30
mailers Ruby's new Hash syntax applied in actionmailer 2013-11-14 13:41:37 +05:30
abstract_unit.rb standardize on jruby_skip & rbx_skip 2014-01-13 19:51:47 +05:30
asset_host_test.rb Refactored to remove unnecessary setup 2013-03-30 13:16:31 +05:30
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 Instrument the generation of Action Mailer messages 2013-10-20 15:21:15 +02:00
mail_helper_test.rb Update actionmailer with new hash syntax. 2012-10-07 21:54:14 +04:00
mail_layout_test.rb Update actionmailer with new hash syntax. 2012-10-07 21:54:14 +04:00
test_helper_test.rb Update actionmailer with new hash syntax. 2012-10-07 21:54:14 +04:00
test_test.rb Remove unneeded tests 2012-12-31 13:57:24 -03:00
url_test.rb Refactored to remove unnecessary setup 2013-03-30 13:16:31 +05:30