update specs to remove deprecation warnings

This commit is contained in:
David McClure
2014-11-07 06:05:44 -08:00
parent 067f552cd5
commit efc4109902
10 changed files with 24 additions and 24 deletions

View File

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