diff --git a/app/controllers/react_controller.rb b/app/controllers/react_controller.rb index 628bc8db9c7..e44983ce223 100644 --- a/app/controllers/react_controller.rb +++ b/app/controllers/react_controller.rb @@ -4,6 +4,6 @@ class ReactController < ApplicationController def index response.headers['X-Request-Path'] = request.path - render 'react/index' + render("react/index", formats: [:html]) end end diff --git a/test/integration/host_test.rb b/test/integration/host_test.rb index 1a6ae0726a3..5676f0eb2a3 100644 --- a/test/integration/host_test.rb +++ b/test/integration/host_test.rb @@ -13,6 +13,14 @@ class HostIntegrationTest < ActionDispatch::IntegrationTest assert page.has_link?('Export', href: current_hosts_path(format: 'csv', search: "name = #{@host.name}")) end + describe "view host page" do + test "host with .ics extension" do + domain = FactoryBot.create(:domain, name: 'example.ics') + host = FactoryBot.create(:host, domain: domain) + visit host_details_page_path(host) + end + end + describe "create new host page" do test "tabs are present" do assert_new_button(current_hosts_path, "Create Host", new_host_path)