From 818f88c352c9edf10b4055bf3bb5fa1ea5e23d68 Mon Sep 17 00:00:00 2001 From: Michiel Beijen Date: Mon, 24 Sep 2018 08:15:02 +0200 Subject: [PATCH] Fixed typo in 404: Ressource -> resource --- public/404.html | 6 +++--- spec/requests/basic_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/404.html b/public/404.html index a28343f5c..501a6afb5 100644 --- a/public/404.html +++ b/public/404.html @@ -4,13 +4,13 @@ 404: Not Found class="error-message"<% end %>> -

404: Requested Ressource was not found.

+

404: Requested resource was not found

<% if @message.present? %>
<%= @message %>
<% end %> <% if !@traceback %>
-

Sorry, but the Phoenix is not able to find your ressource. Try checking the URL for errors.

+

Sorry, but the Phoenix is not able to find your resource. Try checking the URL for errors.

<% else %>
<%= @exception.message %>
<% if @exception.backtrace %> @@ -21,4 +21,4 @@ <% end %> <% end %> - \ No newline at end of file + diff --git a/spec/requests/basic_spec.rb b/spec/requests/basic_spec.rb index 292ecee01..7749336f1 100644 --- a/spec/requests/basic_spec.rb +++ b/spec/requests/basic_spec.rb @@ -56,7 +56,7 @@ RSpec.describe 'Basics', type: :request do expect(response).to have_http_status(404) expect(response.body).to match(/404: Not Found}) - expect(response.body).to match(%r{

404: Requested Ressource was not found.

}) + expect(response.body).to match(%r{

404: Requested resource was not found

}) expect(response.body).to match(%r{No route matches \[GET\] /not_existing_url}) # 401 @@ -88,7 +88,7 @@ RSpec.describe 'Basics', type: :request do expect(response).to have_http_status(404) expect(response.body).to match(/404: Not Found}) - expect(response.body).to match(%r{

404: Requested Ressource was not found.

}) + expect(response.body).to match(%r{

404: Requested resource was not found

}) expect(response.body).to match(/some error message/) # 500