Class: Goz::User::TestCase
- Defined in:
- lib/goz/user/test_case.rb
Overview
Instance Method Summary collapse
- #setup ⇒ Object
- #skip? ⇒ Boolean
- #test_find_by_login_for_user_that_does_exist ⇒ Object
- #test_find_by_login_for_user_that_does_not_exist ⇒ Object
- #test_sync_with_provider ⇒ Object
Instance Method Details
#setup ⇒ Object
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
28 29 30 |
# File 'lib/goz/user/test_case.rb', line 28 def skip? @skip end |
#test_find_by_login_for_user_that_does_exist ⇒ Object
39 40 41 42 43 |
# File 'lib/goz/user/test_case.rb', line 39 def test_find_by_login_for_user_that_does_exist return if skip? return if @klass == Goz::User fail("not implemented") end |
#test_find_by_login_for_user_that_does_not_exist ⇒ Object
33 34 35 36 37 |
# File 'lib/goz/user/test_case.rb', line 33 def test_find_by_login_for_user_that_does_not_exist return if skip? assert_nil @klass.find_by_login @users[:a][:login] end |