Sha256: 7bcfe1612c67a64ddef33d806dd388ac70ec75b3ff7cb178d24d214cf5cc8aa3

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module Sbmt
  module Pact
    module Matchers
      module V4
        class NotEmpty < Sbmt::Pact::Matchers::Base
          def initialize(template)
            raise MatcherInitializationError, "#{self.class}: #{template} should not be empty" if template.blank?

            super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V4, kind: "time", template: template)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbmt-pact-0.12.2 lib/sbmt/pact/matchers/v4/not_empty.rb
sbmt-pact-0.12.1 lib/sbmt/pact/matchers/v4/not_empty.rb
sbmt-pact-0.12.0 lib/sbmt/pact/matchers/v4/not_empty.rb