mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
correct spec
This commit is contained in:
parent
b63630d70b
commit
725d2c0d47
@ -204,7 +204,7 @@ RSpec.describe SearchLog, type: :model do
|
||||
top_trending = SearchLog.trending.first
|
||||
expect(top_trending.term).to eq("ruby")
|
||||
expect(top_trending.searches).to eq(3)
|
||||
expect(top_trending.unique).to eq(2)
|
||||
expect(top_trending.unique_searches).to eq(2)
|
||||
expect(top_trending.click_through).to eq(0)
|
||||
|
||||
SearchLog.where(term: 'ruby', ip_address: '127.0.0.1').update_all(search_result_id: 12)
|
||||
|
Loading…
Reference in New Issue
Block a user