Commit 16e61e1711e6e2ba3e0458a1e97ae3e296de295b

Authored by Andrew Kane
1 parent 6b2a797b

Test update [skip ci]

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/log_subscriber_test.rb
@@ -11,9 +11,9 @@ class LogSubscriberTest < Minitest::Test @@ -11,9 +11,9 @@ class LogSubscriberTest < Minitest::Test
11 def test_update 11 def test_update
12 product = Product.create!(name: "Product A") 12 product = Product.create!(name: "Product A")
13 output = capture_logs do 13 output = capture_logs do
14 - product.update!(name: "Product B") 14 + product.reindex(:search_name)
15 end 15 end
16 - assert_match "Product Store", output 16 + assert_match "Product Update", output
17 end 17 end
18 18
19 def test_destroy 19 def test_destroy