# frozen_string_literal: true RSpec.describe HomePageController do describe "homepage" do context "with crawler view" do before do SiteSetting.site_description = "This is a test description" SiteSetting.has_login_hint = false end it "should display the menu by default" do get "/custom", headers: { "HTTP_USER_AGENT" => "Googlebot" } expect(response.status).to eq(200) expect(response.body).to include("