From a7aa99dff7562f03f984a83e537bbc331ffa01dc Mon Sep 17 00:00:00 2001 From: FrankieMFerreira Date: Fri, 9 Oct 2020 20:24:21 -0400 Subject: [PATCH] Emails displayed in same thread - Likes test fixes --- test/functional/like_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/like_controller_test.rb b/test/functional/like_controller_test.rb index 8dc404e1d1..02635a2386 100644 --- a/test/functional/like_controller_test.rb +++ b/test/functional/like_controller_test.rb @@ -34,7 +34,7 @@ def teardown; end assert_equal cached_likes + 1, note.cached_likes assert ActionMailer::Base.deliveries.size, 1 assert ActionMailer::Base.deliveries.collect(&:to).include?([note.author.email]) - assert ActionMailer::Base.deliveries.collect(&:subject).include?('[PublicLab] ' + (node.has_power_tag('question') ? 'Question: ' : '') + "#{node.title} (##{node.id})) + assert ActionMailer::Base.deliveries.collect(&:subject).include?("[PublicLab] " + (note.has_power_tag('question') ? 'Question: ' : '') + "#{note.title} (##{note.id}) ") end test 'delete like' do