Rewrite Tester
This tool provides Rspec integration tests to test your server's url rewriting capabilities given a set of Apache RewriteRules
.
Tool under development
Usage
From the sources
- Clone the repository and use the default rake task to run the tests. You will need to give the absolute path of a file containing a list of
RewriteRules
through aRULES
env variable. Additionally you will need to provide aHTTP_HOST
env variable, containing the host that you are testing against.
$ HTTP_HOST=www.example.com RULES=/path/to//my/rules rake try:redirects
- Clone the repository and use the default rake task to run the tests. You will need to give the absolute path of a file containing a list of
From your project
- Include the gem in your
Gemfile
gem 'rewrite-tester'
- Use the
test:redirects
rake task by giving a absolute file path to theRULES
env variable.
$ HTTP_HOST=www.example.com RULES=/path/to//my/rules rake try:redirects
- Include the gem in your
Build status
LICENSE
MIT