Sha256: 8fbe308747861654bdc2e2f5ff59d01cd402bd9ce41f9707ed7a7774a1401953

Contents?: true

Size: 504 Bytes

Versions: 104

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

require 'test_plugin_helper'
# functional tests for AnsibleRolesController
class AnsibleRolesControllerTest < ActionController::TestCase
  setup do
    @role = FactoryBot.create(:ansible_role)
  end

  basic_index_test

  test 'should destroy role' do
    assert_difference('AnsibleRole.count', -1) do
      delete :destroy,
             :params => { :id => @role.id },
             :session => set_session_user
    end
    assert_redirected_to ansible_roles_url
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
foreman_ansible-10.2.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.1.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-9.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-9.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-8.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-8.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.0.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.0.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.0.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-6.3.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-6.3.3 test/functional/ansible_roles_controller_test.rb