Sha256: e5fd9cb0d8525638988bf87ecfecdc35a86f8ea7afcc1645185d88a08490c28b
Contents?: true
Size: 656 Bytes
Versions: 36
Compression:
Stored size: 656 Bytes
Contents
module PactBroker module Api module Contracts module PacticipantNameValidation include PactBroker::Messages def name_in_pact_present unless name_in_pact errors.add(:'name', validation_message("pact_missing_pacticipant_name", pacticipant: pacticipant)) end end def name_not_blank if blank? name errors.add(:'name', validation_message("blank")) end end def blank? string string && string.strip.empty? end def empty? string string.nil? || blank?(string) end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems