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-12.0.5 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.4.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.4.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-11.2.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.7 test/functional/ansible_roles_controller_test.rb
foreman_ansible-11.2.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-11.1.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.6 test/functional/ansible_roles_controller_test.rb
foreman_ansible-11.1.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.4.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.5 test/functional/ansible_roles_controller_test.rb
foreman_ansible-11.1.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.4.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.3.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-11.0.0 test/functional/ansible_roles_controller_test.rb