lib/generators/blacklight/test_support_generator.rb in blacklight-7.40.0 vs lib/generators/blacklight/test_support_generator.rb in blacklight-8.0.0.beta1

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + # Copy Blacklight test support material in place # Need the requires here so we can call the generator from environment.rb # as suggested above. require 'rails/generators' @@ -39,12 +40,13 @@ EOF end end def configure_action_mailer - insert_into_file "config/environments/test.rb", after: "config.action_mailer.delivery_method = :test\n" do <<-EOF + insert_into_file "config/environments/test.rb", after: "config.action_mailer.delivery_method = :test\n" do + <<-EOF config.action_mailer.default_options = {from: 'no-reply@example.org'} - EOF + EOF end end end end