Add description method to route_to matcher #473

merged 2 commits into from Jan 19, 2012

2 participants


Adds a description to the Rails routes route_to matcher. Before, the default description for this spec
it { { :get => '/register' }.should route_to(:controller => 'registration', :action => 'new') }
should route {:controller=>"registration", :action=>"new"}
With this description method it is:
should route {:get=>"/register"} to {:controller=>"registration", :action=>"new"}

RSpec member

Specs, please.


Spec added

@dchelimsky dchelimsky merged commit d5d3dfb into rspec:master Jan 19, 2012
@dchelimsky dchelimsky added a commit that referenced this pull request Jan 19, 2012
@dchelimsky dchelimsky Changelog for #473.
Also aligned the example with others in the spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment