Class: Goz::User::TestCase

Inherits:
TestCase
  • Object
show all
Defined in:
lib/goz/user/test_case.rb

Overview

Goz::User::TestCase - Goz user test case.

Author

blair christensen. <[email protected]>

Homepage

github.com/blairc/goz/

Instance Method Summary collapse

Instance Method Details

#setupObject



22
23
24
25
26
# File 'lib/goz/user/test_case.rb', line 22

def setup
  super
  @klass ||= self.class
  @skip = @klass == Goz::User::TestCase
end

#skip?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/goz/user/test_case.rb', line 28

def skip?
  @skip
end

#test_find_by_login_for_user_that_does_existObject



39
40
41
42
43
# File 'lib/goz/user/test_case.rb', line 39

def 
  return if skip?
  return if @klass == Goz::User
  fail("not implemented")
end

#test_find_by_login_for_user_that_does_not_existObject



33
34
35
36
37
# File 'lib/goz/user/test_case.rb', line 33

def 
  return if skip?

  assert_nil @klass. @users[:a][:login]
end

#test_sync_with_providerObject



45
46
47
48
49
# File 'lib/goz/user/test_case.rb', line 45

def test_sync_with_provider
  return if skip?
  return if @klass == Goz::User
  fail("not implemented")
end