mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 10:54:41 +08:00
DEV: Remove experimental_topics_filter
setting (#29902)
This commit is contained in:
@ -1321,8 +1321,6 @@ RSpec.describe ListController do
|
||||
fab!(:private_message_topic)
|
||||
fab!(:topic_in_private_category) { Fabricate(:topic, category: private_category) }
|
||||
|
||||
before { SiteSetting.experimental_topics_filter = true }
|
||||
|
||||
it "should not return topics that the user is not allowed to view" do
|
||||
sign_in(user)
|
||||
|
||||
@ -1345,16 +1343,6 @@ RSpec.describe ListController do
|
||||
).to contain_exactly(topic.id)
|
||||
end
|
||||
|
||||
it "should respond with 404 response code when `experimental_topics_filter` site setting has not been enabled" do
|
||||
SiteSetting.experimental_topics_filter = false
|
||||
|
||||
sign_in(user)
|
||||
|
||||
get "/filter.json"
|
||||
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
|
||||
it "returns category definition topics if `show_category_definitions_in_topic_lists` site setting is enabled" do
|
||||
category_topic = Fabricate(:topic, category: category)
|
||||
category.update!(topic: category_topic)
|
||||
|
Reference in New Issue
Block a user