diff options
author | francis <francis> | 2007-11-08 12:57:01 +0000 |
---|---|---|
committer | francis <francis> | 2007-11-08 12:57:01 +0000 |
commit | 24a792b27884e411a94366e9e0606ebfa7d86153 (patch) | |
tree | b4894d1f9b977bdcb320f1f548ee135ceb30d001 /spec/controllers/user_controller_spec.rb | |
parent | 06252081cd58732c76c14801c3d67c1b3be97dcc (diff) |
Redirect to simplified name URL if given complex one
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
-rw-r--r-- | spec/controllers/user_controller_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 239b7cf56..432c56bb7 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -8,6 +8,11 @@ describe UserController, "when showing a user" do response.should be_success end + it "should redirect to lower case name if given one with capital letters" do + get :show, :simple_name => "Bob_Smith" + response.should redirect_to(:controller => 'user', :action => 'show', :simple_name => "bob_smith") + end + it "should render with 'show' template" do get :show, :simple_name => "bob_smith" response.should render_template('show') |