mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
update specs to remove deprecation warnings
This commit is contained in:
@@ -73,7 +73,7 @@ describe CategoryList do
|
||||
SiteSetting.stubs(:allow_uncategorized_topics).returns(true)
|
||||
Fabricate(:topic, category: Fabricate(:category))
|
||||
Guardian.any_instance.expects(:can_create?).with(Category).returns(true)
|
||||
category_list.categories.should have(3).categories
|
||||
category_list.categories.size.should == 3
|
||||
category_list.categories.should include(topic_category)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user