diff options
author | francis <francis> | 2008-03-21 01:05:12 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-21 01:05:12 +0000 |
commit | f251329df107a5833eff33d936262397fdaa4347 (patch) | |
tree | 9cc2dd7d76ff148a72a87d644a26f17ab115f75f /spec/controllers/admin_user_controller_spec.rb | |
parent | 9249268bd7d3b0585dda7b6a5943d44570aab823 (diff) |
Test code for more admin stuff, and help pages, and related HTML fixes.
Diffstat (limited to 'spec/controllers/admin_user_controller_spec.rb')
-rw-r--r-- | spec/controllers/admin_user_controller_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/controllers/admin_user_controller_spec.rb b/spec/controllers/admin_user_controller_spec.rb new file mode 100644 index 000000000..b3258b929 --- /dev/null +++ b/spec/controllers/admin_user_controller_spec.rb @@ -0,0 +1,21 @@ +require File.dirname(__FILE__) + '/../spec_helper' + +describe AdminUserController, "when administering users" do + integrate_views + fixtures :users + + it "shows the index/list page" do + get :index + end + + it "searches for 'bob'" do + get :list, :query => "bob" + assigns[:admin_users].should == [ users(:bob_smith_user) ] + end + + it "shows a user" do + get :show, :id => users(:bob_smith_user) + end + +end + |