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-15.0.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-15.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-15.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-14.2.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-14.2.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.7 test/functional/ansible_roles_controller_test.rb
foreman_ansible-14.2.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-14.1.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-14.1.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.5 test/functional/ansible_roles_controller_test.rb
foreman_ansible-14.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-13.0.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.7 test/functional/ansible_roles_controller_test.rb
foreman_ansible-10.4.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-7.1.8 test/functional/ansible_roles_controller_test.rb
foreman_ansible-12.0.6 test/functional/ansible_roles_controller_test.rb