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.15.5 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.4 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.15.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.5 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.4 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.11.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.14.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.13.4 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.13.3 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.13.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.13.1 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.13.0 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.12.2 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.11.2 lib/foreman_tasks/test_extensions.rb