aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mailers
Commit message (Collapse)AuthorAgeLines
* Remove mistakenly committed specGareth Rees2015-05-13-3/+0
| | | | | Mistakenly committed from previous version of da6c11531a761847ee129f92677a44fdb02de04e
* Discard rejected responses with malformed From:Gareth Rees2015-05-13-0/+18
| | | | | | | | | Stops the RequestMailer trying to send a stopped_responses mail if the To: address can’t be parsed from the incoming message. ArgumentError: An SMTP To address is required to send a message. Set the message smtp_envelope_to, to, cc, or bcc address.
* Put emails with malformed To: field in holding penGareth Rees2015-05-13-0/+6
| | | | | Prevents mailin exiting with an error code of 75 and sending error reports to the team@ email address.
* Merge branch 'restful-admin-routes' into rails-3-developLouise Crow2014-12-18-2/+1
|\
| * Use RESTful routing for index and show actionsLouise Crow2014-12-12-2/+1
| |
* | Only mark email_subject_request as HTML safe when used in email subject.Louise Crow2014-12-12-6/+6
|/ | | | It's also used in the web interface and needs to be escaped there.
* Add fix for Apple Mail with attachments Gareth Rees2014-11-04-0/+29
|
* Ignore mail sent to known spam addressesGareth Rees2014-03-26-0/+10
|
* Rename spec files so they're run by rake spec.Louise Crow2014-03-13-0/+0
|
* Merge branch 'feature/batch-requests' into rails-3-developLouise Crow2014-01-29-0/+35
|\ | | | | | | | | | | Conflicts: config/general.yml-example spec/factories.rb
| * Add a mailer method for sending a batch request notificationLouise Crow2013-12-04-0/+35
| |
* | Use a better subject line than "Fake Response" for uploaded responsesMark Longair2013-12-06-0/+21
|/ | | | | | | | | | | The subject line wasn't being explicitly specified in RequestMailer.fake_response and a default of "Fake Response" (somehow based on the method name) was being used instead; this subject line would sometimes be visible to users and authorities and caused alarm to them. Instead, we use the standard subject lines for followup emails for the InfoRequest. Fixes #1105.
* Mock methods need to call mail() to generate a proper mail.Louise Crow2013-11-12-1/+1
|
* Exclude hidden responses when calculating old_unclassifiedLouise Crow2013-09-16-4/+6
| | | | | Make old_unclassified_params method consistent with last_public_response_event and associated methods.
* Add public criteria for message event access methodsLouise Crow2013-09-16-5/+5
| | | | | | | get_last_response_event and get_last_outgoing_event are used in various places to determine which events to link to, use in queries etc. Restrict them to refer to the last publicly visible event of the relevant type, and rename them to make that clear.
* Merge branch 'hotfix/0.11.0.9' into rails-3-developLouise Crow2013-06-11-3/+3
|\
| * Get user records in batches, remove unneeded clause.Louise Crow2013-06-11-3/+3
| |
* | Replace specs that left raw email (stored in a file, so not cleaned up ↵Louise Crow2013-06-07-59/+52
| | | | | | | | automatically) in a dirty state. The functionality of the old specs is tested in spec/lib/mail_handler.rb, so remove them and add some new specs that just test the OutgoingMailer methods.
* | Merge remote-tracking branch ↵Louise Crow2013-06-04-2/+6
|\ \ | |/ |/| | | 'openaustralia_github/inline_search_method_refactor' into rails-3-develop
| * Inline method InfoRequest.full_searchMatthew Landauer2013-03-25-2/+6
| |
* | Update reference to Configuration to reflect name change to ↵Louise Crow2013-04-30-1/+1
| | | | | | | | AlaveteliConfiguration
* | Merge branch 'hotfix/0.8.0.1' into rails-3-developLouise Crow2013-04-02-7/+22
|/ | | | | | Conflicts: config/environment.rb spec/mailers/track_mailer_spec.rb
* Add magic encoding line.Louise Crow2013-03-14-0/+1
|
* Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/admin_request_controller.rb app/controllers/admin_track_controller.rb app/controllers/request_controller.rb app/controllers/services_controller.rb app/helpers/link_to_helper.rb app/mailers/request_mailer.rb app/models/application_mailer.rb app/models/info_request.rb app/views/admin_censor_rule/edit.html.erb app/views/admin_censor_rule/new.html.erb app/views/admin_public_body/_form.html.erb app/views/admin_public_body/_locale_selector.html.erb app/views/admin_public_body/_one_list.html.erb app/views/admin_public_body/edit.html.erb app/views/admin_public_body/list.html.erb app/views/admin_public_body/new.html.erb app/views/admin_request/_incoming_message_actions.html.erb app/views/admin_request/edit.html.erb app/views/admin_request/edit_comment.html.erb app/views/admin_request/edit_outgoing.html.erb app/views/admin_request/list.html.erb app/views/admin_request/list_old_unclassified.html.erb app/views/admin_request/show.html.erb app/views/admin_track/_some_tracks.html.erb app/views/admin_track/list.html.erb app/views/admin_user/edit.html.erb app/views/admin_user/list.html.erb app/views/admin_user/show.html.erb app/views/general/_footer.html.erb app/views/general/exception_caught.html.erb app/views/help/contact.html.erb app/views/layouts/default.html.erb app/views/public_body/_alphabet.html.erb app/views/request/_request_listing_single.html.erb app/views/request/_sidebar.html.erb app/views/request/new.html.erb app/views/request/show.html.erb app/views/request_mailer/external_response.rhtml app/views/request_mailer/fake_response.rhtml config/environment.rb config/environments/production.rb config/routes.rb spec/controllers/admin_censor_rule_controller_spec.rb spec/controllers/request_controller_spec.rb spec/controllers/track_controller_spec.rb spec/helpers/link_to_helper_spec.rb spec/mailers/request_mailer_spec.rb spec/models/info_request_spec.rb spec/spec_helper.rb spec/views/public_body/show.html.erb_spec.rb spec/views/request/show.html.erb_spec.rb vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
* Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-5/+5
|
* create_ is deprecatedHenare Degan2013-02-25-13/+13
|
* Update to new mail sending APIHenare Degan2013-02-25-8/+12
|
* Update to new mail sending APIHenare Degan2013-02-25-2/+2
|
* Mailers have their own home in Rails 3Henare Degan2013-02-25-0/+855