Skip to content

This tool was built to do full integration testing of HTTP requests

License

Notifications You must be signed in to change notification settings

paulRbr/rewrite-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rewrite Tester

Gem Version Code Climate Dependency Status

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 a RULES env variable. Additionally you will need to provide a HTTP_HOST env variable, containing the host that you are testing against.
    $ HTTP_HOST=www.example.com RULES=/path/to//my/rules rake try:redirects
  • 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 the RULES env variable.
    $ HTTP_HOST=www.example.com RULES=/path/to//my/rules rake try:redirects

Build status

Build Status Coverage Status

LICENSE

MIT

About

This tool was built to do full integration testing of HTTP requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages