-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
nginx-fastcgi/features/install_site/with-static-files.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Feature: nginx-fastcgi should be able to set static files location | ||
|
||
Scenario: install nginx site config | ||
Given I run 'rm -rf /tmp/foo.site.conf' | ||
Then a file named '/tmp/foo.site.conf' should not exist | ||
And I have chef recipe: | ||
""" | ||
nginx_fastcgi '/tmp/foo.site.conf' do | ||
socket '/tmp/application.socket' | ||
static( | ||
:location => 'static/', | ||
:root => '/var/www/foo/bar/baz/' | ||
) | ||
servers [ | ||
{ | ||
:server_name => 'foo.site.x', | ||
} | ||
] | ||
end | ||
""" | ||
When I run chef recipe on my node | ||
Then a file named '/tmp/foo.site.conf' should exist | ||
And a file named '/tmp/foo.site.conf' should contain 'root \/var\/www\/foo\/bar\/baz\/;' | ||
And a file named '/tmp/foo.site.conf' should contain 'location static\/ \{' | ||
|
||
|
||
|