Skip to content

Commit

Permalink
новая фича
Browse files Browse the repository at this point in the history
  • Loading branch information
melezhik committed May 28, 2012
1 parent e023fa8 commit 9f3d1e4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions nginx-fastcgi/features/install_site/with-static-files.feature
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\/ \{'



0 comments on commit 9f3d1e4

Please sign in to comment.