diff options
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 + |