diff options
author | tony <tony> | 2009-03-22 15:22:27 +0000 |
---|---|---|
committer | tony <tony> | 2009-03-22 15:22:27 +0000 |
commit | 1ceda3c98d4648600a669b5a5d462d68bfd21b59 (patch) | |
tree | 7da3b8c8455647bc79a741ccacc7089e7f702f7f | |
parent | aadc737376291f5bf2fbc4368de5275b19f21885 (diff) |
Add admin + banned tests to User
-rw-r--r-- | spec/models/user_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index d4fdba67c..be56faf39 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -86,3 +86,21 @@ describe User, " when saving" do end end +describe User, "when checking abilities" do + fixtures :users + + before do + @user = users(:bob_smith_user) + end + + it "should not get admin links" do + @user.admin_page_links?.should be_false + end + + it "should be able to file requests" do + @user.can_file_requests?.should be_true + end + +end + + |