Sha256: b7b772befaef1c6dd92b7b409939094bd746fde45552584ba8048e15e23f4ce0

Contents?: true

Size: 606 Bytes

Versions: 18

Compression:

Stored size: 606 Bytes

Contents

module ForemanTasks
  module TestExtensions
    module AccessPermissionsTestExtension
      def setup
        super
        if defined?(AccessPermissionsTest) && self.class == AccessPermissionsTest
          test_name = @method_name || @NAME
          # for compatibility with Foreman 1.10
          test_name = __name__ if test_name.nil? && self.respond_to?(:__name__)
          skip 'used by proxy only' if test_name.include?('foreman_tasks/api/tasks/callback')
        end
      end
    end
  end
end

ActiveSupport::TestCase.send(:include, ForemanTasks::TestExtensions::AccessPermissionsTestExtension)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
foreman-tasks-0.8.6 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.8.5 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.8.4 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.8.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.8.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.8.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.8.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.20 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.19 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.18 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.17 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.16 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.15 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.14 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.13 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.12 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.11 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.10 lib/foreman_tasks/test_extensions.rb