diff options
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') |