Class: ODDB::TestUnknownUser

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
FlexMock::TestCase
Defined in:
test/test_model/user.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



19
20
21
# File 'test/test_model/user.rb', line 19

def setup
  @user = UnknownUser.new
end

- (Object) test_allowed



22
23
24
# File 'test/test_model/user.rb', line 22

def test_allowed
  assert_equal false, @user.allowed?(:anything)
end

- (Object) test_cache_html



25
26
27
# File 'test/test_model/user.rb', line 25

def test_cache_html
  assert_equal true, @user.cache_html?
end

- (Object) test_creditable



28
29
30
# File 'test/test_model/user.rb', line 28

def test_creditable
  assert_equal false, @user.creditable?(:anything)
end

- (Object) test_model



31
32
33
# File 'test/test_model/user.rb', line 31

def test_model
  assert_nil @user.model
end