Sha256: 2fa8998258bf698fa21c82994e694e4c69cd86bf7c0aa09ff4ee71bee1a102f3

Contents?: true

Size: 473 Bytes

Versions: 23

Compression:

Stored size: 473 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

Version Path
foreman_ansible-2.2.14 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.13 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.12 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.11 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.10 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.9 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.8 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.7 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.6 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.5 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.2.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.1.2 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.1.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.0.4 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.0.3 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.0.2 test/functional/ansible_roles_controller_test.rb