Sha256: e8f936b2979e72d1fc4e28ffd8d1da7cbdf3dfb80b9d771b0e965c17e6a487ed

Contents?: true

Size: 1.19 KB

Versions: 14

Compression:

Stored size: 1.19 KB

Contents

Feature: Test tasks for namespace 'apache'

	Background:
		Given a test app with the default configuration

	Scenario: copy only a local .htaccess file into web root (there is no other stage specific .htaccess file available)
		When I remove the file "config/etc/apache2/conf/dev.htaccess.erb"
		And I successfully run `cap dev apache:htaccess`
		Then a file named "htdocs/.htaccess" should exist
		And the file "htdocs/.htaccess" should contain exactly:
		"""
		<FilesMatch "index.php">
		Allow from all
		</FilesMatch>

		"""

	Scenario: copy a local .htaccess file into web root and merge it with dev.htacces
		When I successfully run `cap dev apache:htaccess`
		Then a file named "htdocs/.htaccess" should exist
		And the file "htdocs/.htaccess" should contain exactly:
		"""
		<FilesMatch "index.php">
		Allow from all
		</FilesMatch>
		<Files "favicon.ico">
		Deny from all
		</Files>
		"""

	Scenario: change web root and copy a local .htaccess file into it
		Given a directory named "web_root"
		When I extend the development capistrano configuration variable local_web_root_path with value 'web_root'
		And I successfully run `cap dev apache:htaccess`
		Then a file named "web_root/.htaccess" should exist

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dkdeploy-core-10.0.0 features/apache.feature
dkdeploy-core-9.3.1 features/apache.feature
dkdeploy-core-9.2.4 features/apache.feature
dkdeploy-core-9.1.1 features/apache.feature
dkdeploy-core-9.0.1 features/apache.feature
dkdeploy-core-8.0.2 features/apache.feature
dkdeploy-core-9.3.0 features/apache.feature
dkdeploy-core-9.2.3 features/apache.feature
dkdeploy-core-9.2.2 features/apache.feature
dkdeploy-core-9.2.1 features/apache.feature
dkdeploy-core-9.1.0 features/apache.feature
dkdeploy-core-9.0.0 features/apache.feature
dkdeploy-core-8.0.1 features/apache.feature
dkdeploy-core-8.0.0 features/apache.feature