Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Include the selector assertions on the test case | Rafael Mendonça França | 2014-07-15 | 1 | -3/+0 | |
| | | | | | | | | | | We don't need to require users to include this module on ActionMailer::TestCase | |||||
* | | Rails is a module not a class | Rafael Mendonça França | 2014-07-15 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #11218 from kaspth/loofah-integration | Rafael Mendonça França | 2014-07-10 | 1 | -0/+50 | |
|\ \ | |/ |/| | | | | | | | | | | | Loofah-integration Conflicts: actionpack/CHANGELOG.md actionview/CHANGELOG.md | |||||
| * | Inline Assertion reference. | Timm | 2014-06-16 | 1 | -3/+4 | |
| | | ||||||
| * | Remove response faking. | Timm | 2014-06-16 | 1 | -15/+1 | |
| | | ||||||
| * | Use 1.9 syntax. | Timm | 2014-06-16 | 1 | -6/+6 | |
| | | ||||||
| * | Added rails-dom-testing and rails-html-sanitizer to Gemfile. Added tests for ↵ | Timm | 2014-06-16 | 1 | -0/+63 | |
| | | | | | | | | assert_select_email. | |||||
* | | test i18n against a routed app | Aaron Patterson | 2014-07-07 | 1 | -1/+16 | |
| | | ||||||
* | | add test coverage for the action mailer | Dmitry Polushkin | 2014-07-04 | 6 | -38/+16 | |
| | | ||||||
* | | Add unregister_template_handler to prevent leaks. | Zuhao Wan | 2014-06-12 | 1 | -4/+0 | |
|/ | ||||||
* | Restore I18n.locale to default after test. | Zuhao Wan | 2014-06-07 | 1 | -0/+4 | |
| | | | | | | | | | | If i18n_with_controller_test.rb were to run first, the I18n.locale will be changed to :de, and the following tests in base_test.rb will fail: "subject gets default from I18n" “default subject can have interpolations” "translations are scoped properly" "implicit multipart with default locale" | |||||
* | Merge pull request #15083 from ↵ | Yves Senn | 2014-05-13 | 1 | -11/+14 | |
|\ | | | | | | | | | zuhao/refactor_actionmailer_i18n_with_controller_test Use with_translation helper to clean up I18n stored translations. | |||||
| * | Use with_translation helper to clean up I18n stored translations. | Zuhao Wan | 2014-05-13 | 1 | -11/+14 | |
| | | ||||||
* | | Merge pull request #15082 from zuhao/refactor_actionmailer_delivery_methods_test | Yves Senn | 2014-05-13 | 1 | -30/+42 | |
|\ \ | | | | | | | Clean up deliveries after each test. | |||||
| * | | Move state restoration from setup/teardown into affected test cases. | Zuhao Wan | 2014-05-13 | 1 | -30/+42 | |
| |/ | ||||||
* | | Merge pull request #15086 from zuhao/refactor_actionmailer_mail_layout_test | Yves Senn | 2014-05-13 | 1 | -10/+0 | |
|\ \ | | | | | | | Do not clear deliveries in setup. | |||||
| * | | Remove unnecessary setup and teardown. | Zuhao Wan | 2014-05-13 | 1 | -10/+0 | |
| |/ | ||||||
* / | A minor stylistic fix and cleanup of mail deliveries. | Zuhao Wan | 2014-05-13 | 1 | -3/+5 | |
|/ | ||||||
* | Fix state leaks in actionmailer/test/base_test.rb. | Zuhao Wan | 2014-05-07 | 1 | -102/+157 | |
| | ||||||
* | Fix MailerPreview broken tests | Arthur Neves | 2014-03-15 | 1 | -4/+4 | |
| | | | | | | | | | | | `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. | |||||
* | Make sure we clean preview_interceptors | Arthur Neves | 2014-03-07 | 1 | -0/+1 | |
| | | | | We should make sure we clean preview_interceptors after each test so they dont leaky to the next test | |||||
* | add actionmailer test coverage for undefined delivery method | Dmitry Polushkin | 2014-02-09 | 1 | -9/+20 | |
| | ||||||
* | Support underscored symbols in Action Mailer config | Andrew White | 2014-01-26 | 1 | -0/+14 | |
| | | | | | | We allow the use of underscored symbols to represent classes throughout other parts of Rails so it seems incongruous that it's not supported in `register_interceptor` and `register_observer`. | |||||
* | Add the ability to intercept emails before previewing | Andrew White | 2014-01-26 | 1 | -3/+42 | |
| | | | | | | | | | | | | | | | | To support the ability for tools like CSS style inliners to operate on emails being previewed this commit adds a hook in a similar fashion to the existing delivery interceptor hook, e.g: class CSSInlineStyler def self.previewing_email(message) # inline CSS styles end end ActionMailer::Base.register_preview_interceptor CSSInlineStyler Fixes #13622. | |||||
* | standardize on jruby_skip & rbx_skip | Gaurish Sharma | 2014-01-13 | 1 | -0/+9 | |
| | | | | | | This Adds helpers(jruby_skip & rbx_skip). In Future, Plan is to use these helpers instead of calls directly to RUBY_ENGINE/RbConfig/JRUBY_VERSION | |||||
* | Disable available locales checks to avoid warnings running the tests | Carlos Antonio da Silva | 2013-12-17 | 1 | -0/+3 | |
| | ||||||
* | Retain ActionPack dependency on ActionView | Łukasz Strzałkowski | 2013-12-05 | 1 | -3/+0 | |
| | ||||||
* | `mail()` without arguments is a getter for the current mail. | Yves Senn | 2013-12-02 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | This behavior is documented in our guides (http://edgeguides.rubyonrails.org/action_mailer_basics.html#action-mailer-callbacks) but was broken in the past. This commit short curcuits the `mail` method if: 1. mail() was previously called 2. no headers are passed 3. no block is passed Closes #13090. /cc @pixeltrix | |||||
* | Ruby's new Hash syntax applied in actionmailer | Mr A | 2013-11-14 | 3 | -3/+3 | |
| | ||||||
* | Instrument the generation of Action Mailer messages | Daniel Schierbeck | 2013-10-20 | 1 | -3/+6 | |
| | | | | | | The processing of outbound mail is instrumented with the key `process.action_mailer`. The payload includes the mailer name as well as the mailer method. | |||||
* | Remove unused raw email fixtures | claudiob | 2013-09-12 | 15 | -736/+0 | |
| | | | | The tests that used the raw_email_* fixtures were removed in d500ad3 | |||||
* | Don't mutate the Base settings by merge!ing the given value | Akira Matsuda | 2013-09-10 | 1 | -0/+3 | |
| | ||||||
* | Remove hard require to ActionView from ActionMailer | Łukasz Strzałkowski | 2013-08-25 | 1 | -0/+1 | |
| | ||||||
* | Load AV::Layout to AM::Base in railties | Łukasz Strzałkowski | 2013-08-25 | 2 | -0/+7 | |
| | ||||||
* | Do not silance mail gem warnings. | Łukasz Strzałkowski | 2013-08-25 | 1 | -5/+1 | |
| | | | | I doesn't have any at the moment | |||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2013-08-17 | 1 | -3/+0 | |
|\ | | | | | | | | | | | | | | | Conflicts: actionview/README.rdoc activerecord/lib/active_record/migration.rb guides/source/development_dependencies_install.md guides/source/getting_started.md | |||||
| * | Revert "Merge branch 'master' of github.com:rails/docrails" | Vijay Dev | 2013-08-17 | 1 | -3/+0 | |
| | | | | | | | | | | | | | | This reverts commit 70d6e16fbad75b89dd1798ed697e7732b8606fa3, reversing changes made to ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9. Seems to be a code merge done by mistake. | |||||
* | | As we are doing debug mode on | Arun Agrawal | 2013-08-02 | 1 | -2/+0 | |
|/ | | | | we don't need to silenced it | |||||
* | Don't mutate the Base settings by merge!ing the given value | Akira Matsuda | 2013-07-26 | 1 | -0/+3 | |
| | ||||||
* | don't convert mailer default values to procs | Alex Tsukernik | 2013-07-22 | 2 | -1/+6 | |
| | | | | | | Invoke mailer defaults as procs only if they are procs, do not convert with to_proc. That an object is convertible to a proc does not mean it's meant to be always used as a proc. Fixes #11533 | |||||
* | Fix AM testcase break with mail 2.5.4. It seems that AM's testcase was wrong. | kennyj | 2013-05-17 | 1 | -1/+1 | |
| | ||||||
* | Refactored to remove unnecessary setup | Anupam Choudhury | 2013-03-30 | 2 | -10/+0 | |
| | ||||||
* | drop an unused hash; change slang to SPECIAL | Vipul A M | 2013-03-19 | 1 | -1/+1 | |
| | ||||||
* | Allow passing interpolations to `#default_i18n_subject`, e.g.: | Olek Janiszewski | 2013-01-24 | 2 | -0/+10 | |
| | | | | | | | | | | | | | | | # config/locales/en.yml en: user_mailer: welcome: subject: 'Hello, %{username}' # app/mailers/user_mailer.rb class UserMailer < ActionMailer::Base def welcome(user) mail(subject: default_i18n_subject(username: user.name)) end end | |||||
* | Remove unneeded tests | Rafael Mendonça França | 2012-12-31 | 2 | -181/+0 | |
| | | | | These tests are needed only if we are using MiniTest::Spec | |||||
* | Add active_support/testing/autorun | Rafael Mendonça França | 2012-12-31 | 1 | -1/+1 | |
| | | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails | |||||
* | Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵ | Jeremy Kemper | 2012-12-21 | 3 | -17/+0 | |
| | | | | with Rails 4.0. | |||||
* | Merge pull request #8450 from senny/8448_mailer_return_values | Rafael Mendonça França | 2012-12-10 | 2 | -0/+11 | |
|\ | | | | | the return value of mailer methods should not be relevant | |||||
| * | The return value from mailer methods is not relevant. | Yves Senn | 2012-12-10 | 2 | -0/+11 | |
| | | ||||||
* | | use _action callbacks in actionmailer | Francesco Rodriguez | 2012-12-08 | 3 | -10/+10 | |
|/ |