Sha256: c2f69c8b22c1f683b199aae1e9d71eaaaaddc606960719845b877b4df30f3917

Contents?: true

Size: 381 Bytes

Versions: 96

Compression:

Stored size: 381 Bytes

Contents

require 'test_plugin_helper'

class UiAnsibleRolesControllerTest < ActionController::TestCase
  setup do
    @role = FactoryBot.create(:ansible_role)
  end

  test 'should respond with roles' do
    get :index, :params => {}, :session => set_session_user
    assert_response :success
    res = JSON.parse @response.body
    assert_equal res['total'], res['results'].size
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
foreman_ansible-10.4.2 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.3 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.2 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-12.0.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-11.2.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-7.1.7 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-11.2.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-11.1.2 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-7.1.6 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-11.1.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.4.1 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-7.1.5 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-11.1.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.4.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.3.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-11.0.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.2.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.1.0 test/functional/ui_ansible_roles_controller_test.rb
foreman_ansible-10.0.1 test/functional/ui_ansible_roles_controller_test.rb