diff options
Diffstat (limited to 'site/spec/models/user_spec.rb')
-rw-r--r-- | site/spec/models/user_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/site/spec/models/user_spec.rb b/site/spec/models/user_spec.rb index 05254c8..bdffa30 100644 --- a/site/spec/models/user_spec.rb +++ b/site/spec/models/user_spec.rb @@ -4,4 +4,14 @@ describe User do it "should run spec test with shoulda and models from application" do Guest.new.should_not be_administrator end + + it "should set correct roles for new user" do + u = User.new :name => 'Example', :email => 'example@example.com', + :password => 'Example', :irc_nick => 'example' + u.save! + u.should_not be_administrator + u.should_not be_council_member + u.should_not be_guest + u.should be_signed_up + end end |