* Adds a DUS to backfill community_emoji for Forems that have one * Adds a DUS spec to test backfilling community names * update the script adn the tests to allow us to change the community name * feat: add a stub for the community name * feat: generate a later timestamp so that it doesnt cause confusion * chcek if the emoji already appears in the community name * feat: remove community emoji from displaying on the UI * refactor:remove the else if completely Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
13 lines
440 B
Ruby
13 lines
440 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe "OpenSearch", type: :request do
|
|
let(:user) { create(:user, saw_onboarding: false) }
|
|
|
|
describe "GET /open-search.xml" do
|
|
it "has proper information" do
|
|
allow(Settings::Community).to receive(:community_name).and_return("Community")
|
|
get "/open-search.xml"
|
|
expect(response.body).to include("<ShortName>#{Settings::Community.community_name} Search</ShortName>")
|
|
end
|
|
end
|
|
end
|