Blame view

test/logoff_test.rb 446 Bytes
697a8854   Isaac Lewis   update tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  require "test_helper"
  
  class LogoffTest < Minitest::Test
    def test_successful_logoff
      username = "wland"
      password = "piperita2016"
      company  = "L"
      company_password = ""
  
      uid = Syspro::Logon.logon(username, password, company, company_password)
      assert_equal true, Syspro::Logoff.logoff(uid.guid)
    end
  
    def test_logoff_error
      assert_kind_of String, Syspro::Logoff.logoff('1BB5B3050954BB459A5D034DB5CC386980')
    end
  end