* 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>
13 lines
424 B
Ruby
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
|