From 7ac33a726757084f464b2092e0c1a331ef46c6e6 Mon Sep 17 00:00:00 2001 From: Donnie Tognazzini Date: Fri, 4 Dec 2015 17:13:59 -0800 Subject: [PATCH 01/15] Use a hash for the stewards value entry in the "stewards registry" --- app/mailers/user_mailer.rb | 4 +- app/views/user_mailer/notify.html.erb | 2 +- app/views/user_mailer/notify.text.erb | 2 +- lib/ladle/pull_handler.rb | 33 ++-- lib/ladle/steward_notifier.rb | 4 +- test/ladle/pull_handler_test.rb | 180 ++++++++++--------- test/ladle/steward_notifier_test.rb | 26 +-- test/mailers/previews/user_mailer_preview.rb | 26 +-- test/mailers/user_mailer_test.rb | 30 ++-- 9 files changed, 166 insertions(+), 141 deletions(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index d70be07..3bc47e8 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -9,9 +9,9 @@ def title end end - def notify(user:, repository:, pull_request:, steward_changes_views:) + def notify(user:, repository:, pull_request:, stewards_file_map:) @pull_request = PullRequestPresenter.new(pull_request) - @steward_changes_views = steward_changes_views + @stewards_file_map = stewards_file_map @user = user mail(to: user.email, diff --git a/app/views/user_mailer/notify.html.erb b/app/views/user_mailer/notify.html.erb index 63e3c56..1276833 100644 --- a/app/views/user_mailer/notify.html.erb +++ b/app/views/user_mailer/notify.html.erb @@ -9,7 +9,7 @@

You were notified of this pull request because of the following changes: