Sha256: 9917306d66411427c19d3d1461f4d6d6baa63166a6e94d871d8d7850a8273a7c

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

module ForemanTasks
  module TestExtensions
    module AccessPermissionsTestExtension
      def setup
        super
        if defined?(AccessPermissionsTest) && self.class == AccessPermissionsTest
          skip 'used by proxy only' if __name__.include?('foreman_tasks/api/tasks/callback')
        end
      end
    end
  end
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman-tasks-0.7.8 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.7 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.6 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.5 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.4 lib/foreman_tasks/test_extensions.rb
foreman-tasks-0.7.3 lib/foreman_tasks/test_extensions.rb