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
fa886b3c
Commit
fa886b3c
authored
Jun 02, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
root test
parent
f94be932
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
index.html
spec/fixtures/different_root/dist/index.html
+1
-0
static.json
spec/fixtures/different_root/static.json
+3
-0
simple_spec.rb
spec/simple_spec.rb
+14
-1
No files found.
spec/fixtures/different_root/dist/index.html
0 → 100644
View file @
fa886b3c
Hello from dist/
spec/fixtures/different_root/static.json
0 → 100644
View file @
fa886b3c
{
"root"
:
"dist"
}
spec/simple_spec.rb
View file @
fa886b3c
...
...
@@ -7,15 +7,28 @@ describe "Simple" do
@debug
=
false
BuildpackBuilder
.
new
(
@debug
)
end
let
(
:app
)
{
AppRunner
.
new
(
"hello_world"
,
@debug
)
}
after
do
app
.
destroy
end
let
(
:app
)
{
AppRunner
.
new
(
name
,
@debug
)
}
let
(
:name
)
{
"hello_world"
}
it
"should serve out of public_html by default"
do
response
=
app
.
get
(
"/"
)
expect
(
response
.
code
).
to
eq
(
"200"
)
expect
(
response
.
body
.
chomp
).
to
eq
(
"Hello World"
)
end
describe
"root"
do
let
(
:name
)
{
"different_root"
}
it
"should serve assets out of user defined root"
do
response
=
app
.
get
(
"/"
)
expect
(
response
.
code
).
to
eq
(
"200"
)
expect
(
response
.
body
.
chomp
).
to
eq
(
"Hello from dist/"
)
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