docbrown/spec/requests/open_search_spec.rb
Julianna Tetreault 806a5a774e
Backfill community_emoji data with a DUS 🌱 (#16896)
* 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>
2022-08-26 16:12:46 +02:00

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