Sha256: ce088c0ebf830277b81066933342d6cb0b7e38ab8ae70901252655ca754f95a0

Contents?: true

Size: 601 Bytes

Versions: 60

Compression:

Stored size: 601 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? && 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

60 entries across 60 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 lib/foreman_tasks/test_extensions.rb
foreman-tasks-1.0.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-1.0.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.17.5 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.17.4 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.17.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.17.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.16.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.17.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.11 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.16.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.10 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.16.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.17.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.9 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.8 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.6 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.7 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.16.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.6 lib/foreman_tasks/test_extensions.rb