This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Mon Dec 29 11:50:28 -0800 2008 | |
| |
README.markdown | Thu Apr 16 18:37:45 -0700 2009 | |
| |
init.rb | Mon Dec 29 11:50:28 -0800 2008 | |
| |
lib/ | Thu Apr 16 18:37:45 -0700 2009 | |
| |
test/ | Mon Dec 29 11:50:28 -0800 2008 |
README.markdown
MerbRouting
This plugin allows you to use Merb routing in a Ruby on Rails project.
See the announcement at HungryMachine
Compatibility
Ruby on Rails version 2.3.2 thanks to Piotr Sarnacki
Support for rspec-rails and Cucumber thanks to Bill Burcham
Integrating with Rspec-Rails
Put this in your Spec::Runner.configure block in spec_helper.rb
config.include ActionController::Routing::Helpers, Merb::Router::UrlHelpers
What Works
It looks like routing and URL generation work in running apps and in rspec specs. Both route_for and params_from work fine when called from rspec examples. So this will work (in a Rails project that includes this plugin):
script/generate rspec_scaffold Frooble name:string color:string description:text
rake db:migrate
rake spec
That's testing model, controller and routes.
Cucumber stories work too, so:
ruby script/generate feature Frooble name:string color:string description:text
rake features
Works.
Dependencies
Requires the rack-test gem:
sudo gem install rack-test
In environment.rb:
config.gem 'rack-test', :lib => 'rack/test'







