Home

Awesome

RouteDog for Ruby on Rails

It only works in Rails 3 for now, Rails 2.3 support is comming.

RouteDog does the following things for you:

For What This Is Useful?

Usage

Instalation

If you are using Bundler

gem 'route_dog'

If you are not using Bundler

config.gem 'route_dog'

Get a report of defined, implemented and tested routes

Run your Integration Tests and then ask for a report

rake route_dog:report

Route Report Example

Browsing your application in Development

Create a file called route_dog.yml under your config directory.

---
watcher:
  env:
    - test
notifier:
  env:
    - test
    - development

This will be appended to your application response

Notifier Example

Clean collected tested routes

This is useful if you had a test passing and then you remove the test from your codebase, very uncommon, and it should not be treated as a passing test anymore, here is the command.

rake route_dog:clean

Notes

Development

If you are planning to contribute to this gem, please read the following advice.

Once you have pulled the source code do this...

cd test/mock_app
bundle install

Then you can run the tests...

rake

Copyright

Copyright © 2010 Alvaro Gil. See LICENSE for details.

Thanks

dcadenas, foca and spastorino for beign responsive to my questions.