Blame view

test/logon_test.rb 447 Bytes
dc8aa5b6   Joe Weakley   Rubocop corrections
1
2
3
  # frozen_string_literal: true
  
  require 'test_helper'
49716587   Isaac Lewis   refactor object s...
4
5
  
  class LogonTest < 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) { '' }
49716587   Isaac Lewis   refactor object s...
12
  
dc8aa5b6   Joe Weakley   Rubocop corrections
13
14
15
16
17
18
19
20
21
22
    def test_logon
      assert_match(
        /([A-Z0-9]{33})\w/,
        ::Syspro::SysproClient.new.logon(
          username,
          password,
          company,
          company_password
        ).guid
      )
49716587   Isaac Lewis   refactor object s...
23
24
    end
  end