module Anycablebility::Tests

Loads and runs test cases

Public Class Methods

run() click to toggle source
# File lib/anycablebility/tests.rb, line 11
def run
  load_tests
  MiniTest.run
end

Private Class Methods

load_tests() click to toggle source
# File lib/anycablebility/tests.rb, line 18
def load_tests
  pattern = File.expand_path("tests/**/*.rb", __dir__)
  Dir.glob(pattern).each { |file| require file }
end