diff --git a/app/components/computer_access/_computer_access.html.erb b/app/components/computer_access/_computer_access.html.erb
index 48f515ae8..3e4fed7a7 100644
--- a/app/components/computer_access/_computer_access.html.erb
+++ b/app/components/computer_access/_computer_access.html.erb
@@ -17,7 +17,7 @@
Computer access
Places with computers you can use
- <% if places.any? %>
+ <% if places&.any? %>
<% places.each do |location| %>
- <%= link_to location.name, partner_path(location) %>
diff --git a/app/controllers/sites_controller.rb b/app/controllers/sites_controller.rb
index 824a86fe3..3963d7959 100644
--- a/app/controllers/sites_controller.rb
+++ b/app/controllers/sites_controller.rb
@@ -9,7 +9,7 @@ class SitesController < ApplicationController
def index
if current_site.slug == 'mossley'
- render template: "sites/#{current_site.slug}.html.erb"
+ render template: "sites/#{current_site.slug}"
else
render template: 'sites/default'
end
diff --git a/app/views/sites/mossley.html.erb b/app/views/sites/mossley.html.erb
index b5bc20726..07eeac635 100644
--- a/app/views/sites/mossley.html.erb
+++ b/app/views/sites/mossley.html.erb
@@ -45,7 +45,7 @@
<%= render_component 'help_adding_events' %>
- <%= render_component 'help_getting_online', places: @places_to_get_online %>
+ <%= render_component 'computer_access', places: @places_to_get_online %>
<%= render_component 'help_getting_help' %>
diff --git a/test/integration/sites_integration_test.rb b/test/integration/sites_integration_test.rb
index 42df494fa..9ad73703c 100644
--- a/test/integration/sites_integration_test.rb
+++ b/test/integration/sites_integration_test.rb
@@ -90,4 +90,11 @@ class SitesIntegrationTest < ActionDispatch::IntegrationTest
selector = ".help__free_public_wifi a[href='#{url}']"
assert_select selector
end
+
+ test 'mossley page works' do
+ mossley = create(:site, slug: 'mossley')
+ get 'http://mossley.lvh.me'
+ assert_response :success
+ assert_includes response.body, 'Marvellous Mossley'
+ end
end