Class: SessionsTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- SessionsTest
- Defined in:
- lib/ost-sdk-ruby/test/sessions_test.rb
Instance Method Summary collapse
Instance Method Details
#sessions_service ⇒ Object
8 9 10 |
# File 'lib/ost-sdk-ruby/test/sessions_test.rb', line 8 def sessions_service @sessions_service ||= Config::OST_SDK.services.sessions end |
#test_sessions_get ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/ost-sdk-ruby/test/sessions_test.rb', line 12 def test_sessions_get result = sessions_service.get({ user_id: Config::OST_KIT_USER_ID, session_address: Config::OST_KIT_SESSION_ADDRESS }) puts "result=>#{result}" unless result["success"] assert_equal(result["success"], true) end |
#test_sessions_get_list ⇒ Object
21 22 23 24 25 26 |
# File 'lib/ost-sdk-ruby/test/sessions_test.rb', line 21 def test_sessions_get_list result = sessions_service.get_list({ user_id: Config::OST_KIT_USER_ID }) assert_equal(result["success"], true) end |