diff --git a/lib/inferno/dsl/messages.rb b/lib/inferno/dsl/messages.rb index eca1984fe..71e0fd5a4 100644 --- a/lib/inferno/dsl/messages.rb +++ b/lib/inferno/dsl/messages.rb @@ -1,7 +1,10 @@ +require_relative '../utils/markdown_formatter' + module Inferno module DSL # This module contains methods to add meessages to runnable results module Messages + include Inferno::Utils::MarkdownFormatter # @private def messages @messages ||= [] diff --git a/lib/inferno/entities/test.rb b/lib/inferno/entities/test.rb index 5264cd2b5..997142a17 100644 --- a/lib/inferno/entities/test.rb +++ b/lib/inferno/entities/test.rb @@ -1,6 +1,5 @@ require_relative '../dsl' require_relative '../repositories/tests' -require_relative '../utils/markdown_formatter' require 'pry' module Inferno @@ -8,7 +7,6 @@ module Entities class Test extend Forwardable include DSL - include Inferno::Utils::MarkdownFormatter def_delegators 'self.class', :title, :id, :block, :inputs, :outputs diff --git a/lib/inferno/entities/test_group.rb b/lib/inferno/entities/test_group.rb index 76350cefe..b73dbf900 100644 --- a/lib/inferno/entities/test_group.rb +++ b/lib/inferno/entities/test_group.rb @@ -1,7 +1,6 @@ require_relative '../dsl' require_relative '../repositories/test_groups' require_relative '../result_collection' -require_relative '../utils/markdown_formatter' module Inferno module Entities @@ -14,7 +13,6 @@ class TestGroup include DSL::Results include DSL::Assertions include DSL::Messages - include Inferno::Utils::MarkdownFormatter def_delegators 'self.class', :title, :id, :block, :groups, :inputs, :outputs, :tests diff --git a/lib/inferno/entities/test_suite.rb b/lib/inferno/entities/test_suite.rb index 9a4398be6..496fe665d 100644 --- a/lib/inferno/entities/test_suite.rb +++ b/lib/inferno/entities/test_suite.rb @@ -5,7 +5,6 @@ require_relative '../repositories/test_groups' require_relative '../repositories/test_suites' require_relative '../result_collection' -require_relative '../utils/markdown_formatter' module Inferno module Entities @@ -20,7 +19,6 @@ class TestSuite include DSL::Results include DSL::Assertions include DSL::Messages - include Inferno::Utils::MarkdownFormatter def_delegators 'self.class', :block