about summary refs log tree commit diff
path: root/spec/views/about
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/about')
-rw-r--r--spec/views/about/_contact.html.haml_spec.rb6
-rw-r--r--spec/views/about/show.html.haml_spec.rb8
2 files changed, 10 insertions, 4 deletions
diff --git a/spec/views/about/_contact.html.haml_spec.rb b/spec/views/about/_contact.html.haml_spec.rb
index 2a6decbce..d2e7a4598 100644
--- a/spec/views/about/_contact.html.haml_spec.rb
+++ b/spec/views/about/_contact.html.haml_spec.rb
@@ -3,7 +3,11 @@
 require 'rails_helper'
 
 describe 'about/_contact.html.haml' do
-  describe 'the contact account' do
+  describe 'the contact account', without_verify_partial_doubles: true do
+    before do
+      allow(view).to receive(:display_name).and_return('Display Name!')
+    end
+
     it 'shows info when account is present' do
       account = Account.new(username: 'admin')
       contact = double(contact_account: account, site_contact_email: '')
diff --git a/spec/views/about/show.html.haml_spec.rb b/spec/views/about/show.html.haml_spec.rb
index 686d393fb..2c5130d84 100644
--- a/spec/views/about/show.html.haml_spec.rb
+++ b/spec/views/about/show.html.haml_spec.rb
@@ -1,9 +1,11 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
-$LOAD_PATH << '../lib'
-require 'tag_manager'
 
-describe 'about/show.html.haml' do
+describe 'about/show.html.haml', without_verify_partial_doubles: true do
   before do
+    allow(view).to receive(:site_hostname).and_return('example.com')
+    allow(view).to receive(:site_title).and_return('example site')
   end
 
   it 'has valid open graph tags' do