Fixed typo in 404: Ressource -> resource
This commit is contained in:
parent
8bf3ab24d5
commit
818f88c352
2 changed files with 5 additions and 5 deletions
|
@ -4,13 +4,13 @@
|
||||||
<title>404: Not Found</title>
|
<title>404: Not Found</title>
|
||||||
<link rel="stylesheet" href="/assets/error/style.css">
|
<link rel="stylesheet" href="/assets/error/style.css">
|
||||||
<body <% if @traceback %>class="error-message"<% end %>>
|
<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? %>
|
<% if @message.present? %>
|
||||||
<div><%= @message %></div>
|
<div><%= @message %></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if !@traceback %>
|
<% if !@traceback %>
|
||||||
<div class="error-image" style="background-image: url(/assets/error/error-2.svg)"></div>
|
<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 %>
|
<% else %>
|
||||||
<div><%= @exception.message %></div>
|
<div><%= @exception.message %></div>
|
||||||
<% if @exception.backtrace %>
|
<% if @exception.backtrace %>
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -56,7 +56,7 @@ RSpec.describe 'Basics', type: :request do
|
||||||
expect(response).to have_http_status(404)
|
expect(response).to have_http_status(404)
|
||||||
expect(response.body).to match(/<html/)
|
expect(response.body).to match(/<html/)
|
||||||
expect(response.body).to match(%r{<title>404: Not Found</title>})
|
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})
|
expect(response.body).to match(%r{No route matches \[GET\] /not_existing_url})
|
||||||
|
|
||||||
# 401
|
# 401
|
||||||
|
@ -88,7 +88,7 @@ RSpec.describe 'Basics', type: :request do
|
||||||
expect(response).to have_http_status(404)
|
expect(response).to have_http_status(404)
|
||||||
expect(response.body).to match(/<html/)
|
expect(response.body).to match(/<html/)
|
||||||
expect(response.body).to match(%r{<title>404: Not Found</title>})
|
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/)
|
expect(response.body).to match(/some error message/)
|
||||||
|
|
||||||
# 500
|
# 500
|
||||||
|
|
Loading…
Reference in a new issue