mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
21 lines
484 B
Ruby
Vendored
21 lines
484 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
RSpec.describe "Deleted channel" do
|
|
fab!(:channel_1, :chat_channel)
|
|
|
|
let(:chat_page) { PageObjects::Pages::Chat.new }
|
|
|
|
before do
|
|
chat_system_bootstrap
|
|
channel_1.destroy!
|
|
sign_in(Fabricate(:user))
|
|
end
|
|
|
|
context "when visiting deleted channel" do
|
|
it "redirects to homepage" do
|
|
chat_page.visit_channel(channel_1, check: false)
|
|
|
|
expect(page).to have_content("Not Found") # this is not a translated key
|
|
end
|
|
end
|
|
end
|