BUGFIX: JSON requests don't exclude categories from filters

This commit is contained in:
Régis Hanol
2014-01-31 14:36:00 +01:00
parent 59253c937e
commit ae401f0dc7
3 changed files with 5 additions and 13 deletions

View File

@@ -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