Skip to content

Commit

Permalink
Emails displayed in same thread - Likes test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankieMFerreira committed Oct 10, 2020
1 parent 5008c4f commit a7aa99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/like_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7aa99d

Please sign in to comment.