Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-static
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-static
Commits
69b59258
Commit
69b59258
authored
Jun 03, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom error page test
parent
e23229e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
error.html
spec/fixtures/custom_error_pages/public_html/error.html
+1
-0
static.json
spec/fixtures/custom_error_pages/static.json
+3
-0
simple_spec.rb
spec/simple_spec.rb
+10
-0
No files found.
spec/fixtures/custom_error_pages/public_html/error.html
0 → 100644
View file @
69b59258
not found
spec/fixtures/custom_error_pages/static.json
0 → 100644
View file @
69b59258
{
"error_page"
:
"error.html"
}
spec/simple_spec.rb
View file @
69b59258
...
...
@@ -69,4 +69,14 @@ RSpec.describe "Simple" do
expect
(
response
[
"location"
]).
to
eq
(
"http://
#{
AppRunner
::
HOST_IP
}
:
#{
AppRunner
::
HOST_PORT
}
/"
)
end
end
describe
"custom error pages"
do
let
(
:name
)
{
"custom_error_pages"
}
it
"should render the error page for a 404"
do
response
=
app
.
get
(
"/ewat"
)
expect
(
response
.
code
).
to
eq
(
"404"
)
expect
(
response
.
body
.
chomp
).
to
eq
(
"not found"
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment