Skip to content

Commit dcc48a7

Browse files
authored
DEV: Fix deprecations in specs (#237)
1 parent ddbddac commit dcc48a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/requests/docs_controller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@ def get_tags_from_response(response_tags)
313313
end
314314

315315
it "should return a docs topic when only tags are added to settings" do
316-
SiteSetting.docs_categories = nil
316+
SiteSetting.docs_categories = ""
317317

318318
get "/#{GlobalSetting.docs_path}.json?topic=#{topic.id}"
319319

320320
expect(response.parsed_body["topic"]["id"]).to eq(topic.id)
321321
end
322322

323323
it "should return a docs topic when only categories are added to settings" do
324-
SiteSetting.docs_tags = nil
324+
SiteSetting.docs_tags = ""
325325

326326
get "/#{GlobalSetting.docs_path}.json?topic=#{topic.id}"
327327

0 commit comments

Comments
 (0)