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.1.0 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.0.1 test/functional/ansible_roles_controller_test.rb
foreman_ansible-2.0.0 test/functional/ansible_roles_controller_test.rb