Module: ArchUnit::Testing::MinitestAdapter
- Defined in:
- lib/archunit/testing/minitest_adapter.rb
Overview
Silently installs the helper without making Minitest a runtime dependency.
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/archunit/testing/minitest_adapter.rb', line 17 def install! return unless defined?(::Minitest::Assertions) return if installed? ::Minitest::Assertions.include(MinitestAssertions) nil end |
.installed? ⇒ Boolean
25 26 27 28 |
# File 'lib/archunit/testing/minitest_adapter.rb', line 25 def installed? defined?(::Minitest::Assertions) && ::Minitest::Assertions.include?(MinitestAssertions) end |