repo.or.cz
/
punbbonrails.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Reduced User#is_guest?, User#is_admin?, User#is_mod? calls
[punbbonrails.git]
/
test
/
unit
/
rank_test.rb
blob
cd477ecc0bf6966cd557f9a5414f7f21def13f6d
1
require File.dirname(__FILE__) + '/../test_helper'
2
3
class RankTest < Test::Unit::TestCase
4
fixtures :ranks
5
6
def test_rank
7
r = Rank.new
8
r.rank = 'a'
9
r.min_posts = 1
10
assert r.save == true
11
r.rank = 'a'*50
12
assert r.save == true
13
r.rank = ''
14
assert r.save == false
15
r.rank = 'a'*51
16
assert r.save == false
17
end
18
end