Blame view

test/logoff_test.rb 548 Bytes
dc8aa5b6   Joe Weakley   Rubocop corrections
1
2
3
  # frozen_string_literal: true
  
  require 'test_helper'
697a8854   Isaac Lewis   update tests
4
5
  
  class LogoffTest < Minitest::Test
dc8aa5b6   Joe Weakley   Rubocop corrections
6
7
8
9
10
11
    extend Minitest::Spec::DSL
  
    let(:username) { 'wland' }
    let(:password) { 'piperita2016' }
    let(:company) { 'L' }
    let(:company_password) { '' }
697a8854   Isaac Lewis   update tests
12
  
dc8aa5b6   Joe Weakley   Rubocop corrections
13
    def test_successful_logoff
697a8854   Isaac Lewis   update tests
14
15
16
17
18
      uid = Syspro::Logon.logon(username, password, company, company_password)
      assert_equal true, Syspro::Logoff.logoff(uid.guid)
    end
  
    def test_logoff_error
dc8aa5b6   Joe Weakley   Rubocop corrections
19
20
21
22
      assert_kind_of(
        String,
        Syspro::Logoff.logoff('1BB5B3050954BB459A5D034DB5CC386980')
      )
697a8854   Isaac Lewis   update tests
23
24
    end
  end