diff options
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/pages/show.html.haml_spec.rb | 4 | ||||
-rw-r--r-- | spec/views/projects/pages_domains/show.html.haml_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/views/projects/pages/show.html.haml_spec.rb b/spec/views/projects/pages/show.html.haml_spec.rb index 39384484279..63b66616f31 100644 --- a/spec/views/projects/pages/show.html.haml_spec.rb +++ b/spec/views/projects/pages/show.html.haml_spec.rb @@ -17,7 +17,7 @@ describe 'projects/pages/show' do assign(:project, project) allow(view).to receive(:current_user).and_return(user) - assign(:domains, project.pages_domains) + assign(:domains, [domain.present(current_user: user)]) end describe 'validation warning' do @@ -47,7 +47,7 @@ describe 'projects/pages/show' do describe "warning about failed Let's Encrypt" do let(:error_message) do - "Something went wrong while obtaining Let's Encrypt certificate for #{domain.domain}. "\ + "Something went wrong while obtaining the Let's Encrypt certificate for #{domain.domain}. "\ "To retry visit your domain details." end diff --git a/spec/views/projects/pages_domains/show.html.haml_spec.rb b/spec/views/projects/pages_domains/show.html.haml_spec.rb index 51c7a08fe96..7d502e74d10 100644 --- a/spec/views/projects/pages_domains/show.html.haml_spec.rb +++ b/spec/views/projects/pages_domains/show.html.haml_spec.rb @@ -7,7 +7,7 @@ describe 'projects/pages_domains/show' do before do assign(:project, project) - assign(:domain, domain) + assign(:domain, domain.present) stub_pages_setting(external_https: true) end |