module OnlyofficeTestrailWrapper::TestrailStatusHelper
Public Instance Methods
check_status_exist(status)
click to toggle source
check the statuses is exist @param [Array] status with symbols
# File lib/onlyoffice_testrail_wrapper/testrail_helper/testrail_status_helper.rb, line 7 def check_status_exist(status) status = [status] unless status.is_a?(Array) status.each do |current_status| unless current_status.is_a?(Symbol) raise "Founded status '#{current_status}' is a '#{current_status.class}'! " \ 'All statuses must be symbols' end raise 'One or some statuses is not found. Pls, check it' unless TestrailResult::RESULT_STATUSES.key?(current_status) end end