docbrown/spec/requests/open_search_spec.rb
Anna Buianova 7d053471f8
Rubocop fixes in spec/requests (#18946)
* Rubocop fixes in spec/requests

* Fixed spec/requests/api/v0/articles_spec.rb

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2023-01-12 19:10:16 +03:00

13 lines
424 B
Ruby

require "rails_helper"
RSpec.describe "OpenSearch" 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