diff --git a/test/log_subscriber_test.rb b/test/log_subscriber_test.rb index 45ec1aa..d3925fd 100644 --- a/test/log_subscriber_test.rb +++ b/test/log_subscriber_test.rb @@ -11,9 +11,9 @@ class LogSubscriberTest < Minitest::Test def test_update product = Product.create!(name: "Product A") output = capture_logs do - product.update!(name: "Product B") + product.reindex(:search_name) end - assert_match "Product Store", output + assert_match "Product Update", output end def test_destroy -- libgit2 0.21.0