Sha256: 577fc57ccacaeabd22f0daeb14c729672e55e2f440851948e81524a136726f7b
Contents?: true
Size: 847 Bytes
Versions: 5
Compression:
Stored size: 847 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'redmine_plugins_helper/test_tasks/base' require 'redmine_plugins_helper/test_tasks/minitest' require 'redmine_plugins_helper/test_tasks/rspec' module RedminePluginsHelper module TestTasks class Auto < ::RedminePluginsHelper::TestTasks::Base class Tester enable_simple_cache common_constructor :owner, :name, :tests_pattern delegate :register, to: :sub # @return [Boolean] def available? owner.plugin_root.glob(tests_pattern).any? end private # @!method sub # @return [RedminePluginsHelper::TestTasks::Base] def sub_uncached ::RedminePluginsHelper::TestTasks.const_get(name.to_s.camelize).new(owner.plugin_id, name) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems