Commit 16e61e1711e6e2ba3e0458a1e97ae3e296de295b
1 parent
6b2a797b
Exists in
master
and in
2 other branches
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 | 11 | def test_update |
12 | 12 | product = Product.create!(name: "Product A") |
13 | 13 | output = capture_logs do |
14 | - product.update!(name: "Product B") | |
14 | + product.reindex(:search_name) | |
15 | 15 | end |
16 | - assert_match "Product Store", output | |
16 | + assert_match "Product Update", output | |
17 | 17 | end |
18 | 18 | |
19 | 19 | def test_destroy | ... | ... |