Module: ForemanTasks::TestExtensions::AccessPermissionsTestExtension

Defined in:
lib/foreman_tasks/test_extensions.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



4
5
6
7
8
9
10
11
12
# File 'lib/foreman_tasks/test_extensions.rb', line 4

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