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
RewriteRulesthrough aRULESenv variable. Additionally you will need to provide aHTTP_HOSTenv variable, containing the host that you are testing against.
bash $ HTTP_HOST=www.example.com RULES=/path/to//my/rules rake- 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
ruby gem 'rewrite-tester'- Use the
test:redirectsrake task by giving a absolute file path to theRULESenv variable.
bash $ HTTP_HOST=www.example.com RULES=/path/to//my/rules rake test:redirects- Include the gem in your
LICENSE
MIT