Sha256: f2afbb2ea2f1afd0e889cd3bb31d69f0f7e2c642a74b15fe178fc06baed285a2

Contents?: true

Size: 727 Bytes

Versions: 13

Compression:

Stored size: 727 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

module RedminePluginsHelper
  module Patches
    module TestCasePatch
      extend ActiveSupport::Concern

      included do
        extend ::RedminePluginsHelper::TestHelper
        include InstanceMethods
        setup { the_test_config.before_each }
        teardown { the_test_config.after_each }
      end

      module InstanceMethods
        def the_test_config
          @the_test_config ||= ::RedminePluginsHelper::TestConfig.new
        end
      end
    end
  end
end

unless ActiveSupport::TestCase.included_modules.include?(
  RedminePluginsHelper::Patches::TestCasePatch
)
  ActiveSupport::TestCase.include RedminePluginsHelper::Patches::TestCasePatch
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
redmine_plugins_helper-0.13.2 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.13.1 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.13.0 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.12.2 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.12.1 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.12.0 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.11.0 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.10.0 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.9.4 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.9.3 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.9.2 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.9.1 lib/redmine_plugins_helper/patches/test_case_patch.rb
redmine_plugins_helper-0.9.0 lib/redmine_plugins_helper/patches/test_case_patch.rb