mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
FIX: flaky specs after topic view custom filters (#13019)
* FIX: flaky specs after topic view custom filters When ensuring TopicView class variables return to the original state it should use empty Hash instead of empty Array. That https://github.com/discourse/discourse/blob/master/lib/topic_view.rb#L60 * FIX: convert to string for topic view custom filter
This commit is contained in:

committed by
GitHub

parent
37812b8e35
commit
4a2912233c
@ -74,7 +74,7 @@ describe TopicView do
|
||||
expect(tv.filter_posts).to eq([p0, p1])
|
||||
|
||||
ensure
|
||||
TopicView.instance_variable_set(:@custom_filters, [])
|
||||
TopicView.instance_variable_set(:@custom_filters, {})
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user