Add description method to route_to matcher #473

Merged
merged 2 commits into from Jan 19, 2012

Projects

None yet

2 participants

@jwulff

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') }
was:
should route {:controller=>"registration", :action=>"new"}
With this description method it is:
should route {:get=>"/register"} to {:controller=>"registration", :action=>"new"}

@dchelimsky
RSpec member

Specs, please.

@jwulff

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.
ea2be20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment