Commit 77fdf23df486eb95deb024b91bd92e7008b33f59
1 parent
2aa586a2
Exists in
master
and in
2 other branches
Added log subscriber test for search [skip ci]
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
test/log_subscriber_test.rb
... | ... | @@ -52,6 +52,15 @@ class LogSubscriberTest < Minitest::Test |
52 | 52 | assert_match '"count":2', output |
53 | 53 | end |
54 | 54 | |
55 | + def test_search | |
56 | + output = capture_logs do | |
57 | + Product.search("product").to_a | |
58 | + end | |
59 | + assert_match "Product Search", output | |
60 | + end | |
61 | + | |
62 | + private | |
63 | + | |
55 | 64 | def create_products |
56 | 65 | Searchkick.callbacks(false) do |
57 | 66 | 3.times.map do | ... | ... |