Sha256: 6b5d44ada70acc2575335ba098cb1072d3fdc00fac9c09403624eb93898b8431

Contents?: true

Size: 927 Bytes

Versions: 8

Compression:

Stored size: 927 Bytes

Contents

require_relative 'dsl/assertions'
require_relative 'dsl/fhir_client'
require_relative 'dsl/fhir_validation'
require_relative 'dsl/fhir_resource_validation'
require_relative 'dsl/fhirpath_evaluation'
require_relative 'dsl/http_client'
require_relative 'dsl/results'
require_relative 'dsl/runnable'
require_relative 'dsl/suite_endpoint'
require_relative 'dsl/messages'

module Inferno
  # The DSL for writing tests.
  module DSL
    INCLUDABLE_DSL_MODULES = [
      Assertions,
      FHIRClient,
      HTTPClient,
      Results,
      FHIRValidation,
      FHIRResourceValidation,
      FhirpathEvaluation,
      Messages
    ].freeze

    EXTENDABLE_DSL_MODULES = [
      Runnable
    ].freeze

    def self.included(klass)
      INCLUDABLE_DSL_MODULES.each do |dsl_module|
        klass.include dsl_module
      end

      EXTENDABLE_DSL_MODULES.each do |dsl_module|
        klass.extend dsl_module
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inferno_core-0.5.2 lib/inferno/dsl.rb
inferno_core-0.5.1 lib/inferno/dsl.rb
inferno_core-0.5.0 lib/inferno/dsl.rb
inferno_core-0.4.44 lib/inferno/dsl.rb
inferno_core-0.4.43 lib/inferno/dsl.rb
inferno_core-0.4.42 lib/inferno/dsl.rb
inferno_core-0.4.41 lib/inferno/dsl.rb
inferno_core-0.4.40 lib/inferno/dsl.rb