Fixed typo in 404: Ressource -> resource

This commit is contained in:
Michiel Beijen 2018-09-24 08:15:02 +02:00
parent 8bf3ab24d5
commit 818f88c352
2 changed files with 5 additions and 5 deletions

View File

@ -4,13 +4,13 @@
<title>404: Not Found</title>
<link rel="stylesheet" href="/assets/error/style.css">
<body <% if @traceback %>class="error-message"<% end %>>
<h1>404: Requested Ressource was not found.</h1>
<h1>404: Requested resource was not found</h1>
<% if @message.present? %>
<div><%= @message %></div>
<% end %>
<% if !@traceback %>
<div class="error-image" style="background-image: url(/assets/error/error-2.svg)"></div>
<p>Sorry, but the Phoenix is not able to find your ressource. Try checking the URL for errors.</p>
<p>Sorry, but the Phoenix is not able to find your resource. Try checking the URL for errors.</p>
<% else %>
<div><%= @exception.message %></div>
<% if @exception.backtrace %>
@ -21,4 +21,4 @@
<% end %>
<% end %>
</body>
</html>
</html>

View File

@ -56,7 +56,7 @@ RSpec.describe 'Basics', type: :request do
expect(response).to have_http_status(404)
expect(response.body).to match(/<html/)
expect(response.body).to match(%r{<title>404: Not Found</title>})
expect(response.body).to match(%r{<h1>404: Requested Ressource was not found.</h1>})
expect(response.body).to match(%r{<h1>404: Requested resource was not found</h1>})
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(/<html/)
expect(response.body).to match(%r{<title>404: Not Found</title>})
expect(response.body).to match(%r{<h1>404: Requested Ressource was not found.</h1>})
expect(response.body).to match(%r{<h1>404: Requested resource was not found</h1>})
expect(response.body).to match(/some error message/)
# 500