mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
BUGFIX: JSON requests don't exclude categories from filters
This commit is contained in:
@@ -59,11 +59,7 @@ describe TopMenuItem do
|
||||
end
|
||||
|
||||
it "excludes category" do
|
||||
expect(items[0].query_should_exclude_category?(nil, nil)).to be_true
|
||||
end
|
||||
|
||||
it "does not exclude for json format" do
|
||||
expect(items[0].query_should_exclude_category?(nil, 'json')).to be_false
|
||||
expect(items[0].query_should_exclude_category?(nil)).to be_true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user