Merge pull request #2251 from mbeijen/404
Fixed typo in 404: Ressource -> resource
This commit is contained in:
commit
e6f434328d
2 changed files with 5 additions and 5 deletions
|
@ -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 %>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue